tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Argument of type 'SqlParser' is not assignable to parameter of type 'Parser'.

chengchengpei opened this issue · comments

I got errors

Argument of type 'PrestoSqlParser' is not assignable to parameter of type 'Parser'.
  Type 'PrestoSqlParser' is missing the following properties from type 'Parser': _errHandler, _input, _precedenceStack, _ctx, and 68 more.

PrestoSqlParser is generated by from antlr4/presto/PrestoSql.g4 by ANTLR 4.9.0-SNAPSHOT

Screenshot 2022-12-18 at 6 56 07 PM

deps:

  "dependencies": {
    "@types/antlr4": "4.7.0",
    "antlr4": "^4.11.0",
    "antlr4-c3": "^2.2.1",
    "antlr4ts": "^0.5.0-alpha.4",
    "assert": "1.5.0"
  },