drforr / perl6-ANTLR4

Parser for ANTLR4 grammar
25 stars 12 forks source link

SQLite.g4 can not be converted #14

Closed seluriseluri closed 6 years ago

seluriseluri commented 7 years ago

As per the title.

It seems many other ones inside the corpus folder do not get converted either.

Is it a known issue?

Using the latest rakudo-star 2017/07 with the corpus/SQLite.g4
I get the following output:

Shouldn't happen, please report this error.
  in method atom at /Applications/Rakudo/share/perl6/site/sources/9F044BB3D7CFF2128EF7C874EB947D3A35197719 (ANTLR4::Actions::AST) line 272
  in regex atom at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 473
  in regex element at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 423
  in regex parserElement at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 418
  in regex blockAltList at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 413
  in regex block at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 502
  in regex ebnf at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 438
  in regex element at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 423
  in regex parserElement at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 418
  in regex parserAlt at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 345
  in regex parserAltList at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 340
  in regex parserRuleSpec at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 278
  in regex ruleSpec at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 273
  in regex TOP at /Applications/Rakudo/share/perl6/site/sources/C257D4AC347E4280F89BBBFC889919D8ADA9061A (ANTLR4::Grammar) line 166
  in method parsefile at /Applications/Rakudo/share/perl6/site/sources/FF59F8064BDEE33A2BE4E1992D9F0BC64B5C008E (ANTLR4::Actions::Perl6) line 194
  in sub MAIN at antlr2perl6 line 7
  in block <unit> at antlr2perl6 line 4

By comparison, CSharp4.g4 seems to work fine.

drforr commented 6 years ago

Most of them work by now, closing this issue. (It was a leftover from the GLR days, actually.)