wip: ast?
This commit is contained in:
9
ast/ast.go
Normal file
9
ast/ast.go
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
package ast
|
||||||
|
|
||||||
|
type Statement interface {
|
||||||
|
stmt()
|
||||||
|
}
|
||||||
|
|
||||||
|
type Expr interface {
|
||||||
|
expr()
|
||||||
|
}
|
||||||
13
ast/expr.go
Normal file
13
ast/expr.go
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package ast
|
||||||
|
|
||||||
|
//binary
|
||||||
|
////number expr
|
||||||
|
////string expr
|
||||||
|
////symbol expr
|
||||||
|
////assignment
|
||||||
|
|
||||||
|
//complex
|
||||||
|
/////binary expr
|
||||||
|
////filter expr????
|
||||||
|
////call expr
|
||||||
|
////pipe expr
|
||||||
Reference in New Issue
Block a user