tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

return type declaration does not support function types

thautwarm opened this issue · comments

The grammar:

op_or returns [((arg0:MExpr_t, arg1:MExpr_t) => MExpr_t) result]
      : '||' { $result = ExprOr; }

Which caused such an error:

error(63): src/xxx.g4: unknown attribute reference 'result' in '$result = ExprOr;'