Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chengchengpei opened this issue Dec 19, 2022 · 1 comment

Comments

@chengchengpei
Copy link

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"
  },
@mike-lischke
Copy link
Owner

Looks like your generated parser was not generated with antlr4ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants