(program string)
| 98 | } |
| 99 | |
| 100 | func parse(program string) (interface{}, error) { |
| 101 | ast, err := parser.ParseText(program) |
| 102 | result := ParseResult{AST: ast, Error: err} |
| 103 | |
| 104 | return result, nil |
| 105 | } |
| 106 | |
| 107 | type ParseResult struct { |
| 108 | AST interface{} `wasm:"ast"` |
nothing calls this directly
no test coverage detected