@@ -1,8 +1,8 @@
package module
import (
- "cp/node"
- "cp/object"
+ "fw/cp/node"
+ "fw/cp/object"
"ypk/assert"
)
@@ -1,10 +1,10 @@
package node
- "cp/constant/enter"
- "cp/constant/operation"
- "cp/statement"
+ "fw/cp/constant/enter"
+ "fw/cp/constant/operation"
+ "fw/cp/statement"
type EnterNode interface {
- "cp/constant"
+ "fw/cp/constant"
type Node interface {
@@ -1,7 +1,7 @@
package main
- "rt2/context"
+ "fw/rt2/context"
@@ -2,12 +2,12 @@ package main
"fmt"
- "rt2/frame"
- "rt2/module"
- "rt2/nodeframe"
- _ "rt2/rules"
- "rt2/scope"
+ "fw/rt2/frame"
+ "fw/rt2/module"
+ "fw/rt2/nodeframe"
+ _ "fw/rt2/rules"
+ "fw/rt2/scope"
package context
const (
- STACK = "rt2/frame"
- SCOPE = "rt2/scope"
- MOD = "rt2/module"
- UNIVERSE = "rt2/ctx"
+ STACK = "fw/rt2/frame"
+ SCOPE = "fw/rt2/scope"
+ MOD = "fw/rt2/module"
+ UNIVERSE = "fw/rt2/ctx"
type Domain interface {
package decision
var (
package frame
type WAIT int
@@ -2,7 +2,7 @@ package frame
"container/list"
- mod "cp/module"
+ mod "fw/cp/module"
+ "fw/xev"
"os"
- "xev"
@@ -1,12 +1,12 @@
package nodeframe
+ "fw/rt2/decision"
"reflect"
- "rt2/decision"
@@ -1,14 +1,14 @@
package rules
func assignSeq(f frame.Frame) (seq frame.Sequence, ret frame.WAIT) {
- mod "rt2/module"
+ mod "fw/rt2/module"
/**
@@ -1,11 +1,11 @@
func ifExpr(f frame.Frame) (seq frame.Sequence, ret frame.WAIT) {
@@ -1,15 +1,15 @@
@@ -1,13 +1,13 @@
func returnSeq(f frame.Frame) (frame.Sequence, frame.WAIT) {
@@ -2,14 +2,14 @@
func prologue(n node.Node) frame.Sequence {
@@ -1,9 +1,9 @@
package scope
//менеджер зон видимости, зоны видимости динамические, создаются в момент входа в EnterNode
@@ -2,12 +2,12 @@ package scope
+ rt_mod "fw/rt2/module"
- rt_mod "rt2/module"
package xev
- "cp/module"
+ "fw/cp/module"
"io/ioutil"
"path/filepath"
"math/big"
"strconv"
"unicode/utf16"
@@ -1,21 +0,0 @@
-package assert
-
-import (
- "fmt"
-)
-func For(cond bool, code int) {
- e := fmt.Sprint(code)
- if !cond {
- switch {
- case (code >= 20) && (code < 40):
- e = fmt.Sprintln(code, "precondition violated")
- case (code >= 40) && (code < 60):
- e = fmt.Sprintln(code, "subcondition violated")
- case (code >= 60) && (code < 80):
- e = fmt.Sprintln(code, "postcondition violated")
- default:
- }
- panic(e)
-}