diff options
| author | Marc Vertes <marc.vertes@tendermint.com> | 2023-08-09 11:47:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-09 11:47:39 +0200 |
| commit | 947873b34aabe46dfb9f8d06214736cb11b5a6b2 (patch) | |
| tree | 9fc4728cf39017ee0275d62a7578881cbb3073bb /lang/golang/go.go | |
| parent | 355750be61fbf4b90d132a9560e01113f22f4c38 (diff) | |
codegen: add a bytecode generator (#5)
* codegen: add a bytecode generator
* cleaning scanner, parser and vm1.
Diffstat (limited to 'lang/golang/go.go')
| -rw-r--r-- | lang/golang/go.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lang/golang/go.go b/lang/golang/go.go index 49b12d8..1517689 100644 --- a/lang/golang/go.go +++ b/lang/golang/go.go @@ -55,16 +55,11 @@ var GoParser = &parser.Parser{ "<": {parser.InfOp, 0, 6}, ":=": {parser.DefOp, 0, 7}, "=": {parser.AssignOp, 0, 7}, - "#call": {parser.CallExpr, 0, 0}, - "#id": {parser.Ident, 0, 0}, - "#num": {parser.NumberLit, 0, 0}, "if": {parser.IfStmt, parser.Stmt | parser.ExprSep, 0}, "func": {parser.FuncDecl, parser.Decl | parser.Call, 0}, "return": {parser.ReturnStmt, parser.Stmt, 0}, "{..}": {parser.StmtBloc, parser.ExprSep, 0}, - "{": {parser.StmtBloc, parser.ExprSep, 0}, // FIXME: redundant with above "(..)": {parser.ParBloc, parser.Call, 0}, - "(": {parser.ParBloc, parser.Call, 0}, // FIXME: redundant with above `".."`: {parser.StringLit, 0, 0}, }, } |
