Open walkertest opened 2 years ago
@parrt
I am new to antlr and had tried by best to solve these problems myself. Please give some guide.
Thanks first.
I think the numbers appended at the end of the constant declaration is likely because there are some missing token definitions, or that they are out of order from the original grammar. I also think the same for the other two observed differences. Did you try your recovered grammar? Also, why did you revert back to Antlr3 from Antlr4?
I think the numbers appended at the end of the constant declaration is likely because there are some missing token definitions, or that they are out of order from the original grammar
I agree with u. Or may be the anltr3 version older(I have tried antlr3 and antlr 3.5.3). Now TarsParser file was almost found back. I don't know what make the remaining differences.
Did you try your recovered grammar?
Yes, i try to recover the grammer.
why did you revert back to Antlr3 from Antlr4?
Because the original version is antlr3.5(maybe older.)
My plan is get back the antlr3 file completely and then change to antlr4. Doing like this maybe more safely for the tars framework.
The context Link:https://github.com/antlr/antlr4/issues/3652
I have tralated the lexer file successfully.: https://github.com/walkertest/TarsJava/blob/feature/antlrfind/tools/tars-maven-plugin/src/main/resources/antlr/TarsLexer.g
The parser file was almost found back:https://github.com/walkertest/TarsJava/blob/feature/antlrfind/tools/tars-maven-plugin/src/main/resources/antlr/TafParser.g
The remaining questions are: First: const_initializer func was different like this.
Second: The Follow bitset define index was a little differant like this.
Third: The order of some valiables which defined in func was differant.