The questions when i try to translate java class to antlr3 grammer file.
- Dominant language
- Java
- Stars
- 253
- Forks
- 178
- PR merge metrics
- No merged PRs in 30d
Description
The context Link:https://github.com/antlr/antlr4/issues/3652
```
Env: antlr 3.5
Run commond: java -jar antlr-3.5-complete.jar TarsParser.g
```
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked issue #3652 and reproduce the reported command, `java -jar antlr-3.5-complete.jar TarsParser.g`. Compare the generated output with `TarsLexer.g` and `TafParser.g`, focusing on `const_initializer`, the Follow bitset indexes, and local variable ordering. Done means explaining whether these differences are expected or identifying a reproducible ANTLR 3.5 generation problem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100