(script string)
| 24 | } |
| 25 | |
| 26 | func ArithmeticOperators(script string) interface{} { |
| 27 | input := antlr.NewInputStream(script) |
| 28 | lexer := parser.NewGScriptLexer(input) |
| 29 | stream := antlr.NewCommonTokenStream(lexer, 0) |
| 30 | tree := parser.NewGScriptParser(stream).Prog() |
| 31 | visitor := Visitor{} |
| 32 | return visitor.Visit(tree) |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | 栈帧入栈 |
nothing calls this directly
no test coverage detected