You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the lexer is fine, to my surprise, the generated ClickHouseParser.ts (link to Gist) contains type references which look like C++-Sets to me (excerp from row 13035):
which are both present in the C++ standard libraries' Set implementation, but not in the JavaScript built-in Set implementation, which uses size/add.
For comparison, I also generated a parser using the "standard" antlr, v. 4.9.3 which was able to produce a functioning Javascript parser. Is this issue linked to a bug in antlr4ts, or a problem with the grammar?
Thank you for any pointers!
The text was updated successfully, but these errors were encountered:
I am using antlr4ts
0.5.0-alpha.4
to generate a parser for the SQL dialect ClickHouse with the following Grammar:While the lexer is fine, to my surprise, the generated
ClickHouseParser.ts
(link to Gist) contains type references which look like C++-Sets to me (excerp from row 13035):This line up with the used methods on
clauses
,count()
andinsert()
which are both present in the C++ standard libraries' Set implementation, but not in the JavaScript built-in Set implementation, which uses
size
/add
.For comparison, I also generated a parser using the "standard" antlr, v. 4.9.3 which was able to produce a functioning Javascript parser. Is this issue linked to a bug in
antlr4ts
, or a problem with the grammar?Thank you for any pointers!
The text was updated successfully, but these errors were encountered: