Skip to content

The questions when i try to translate java class to antlr3 grammer file. #208

@walkertest

Description

@walkertest

The context Link:antlr/antlr4#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:
image
const_initializer func was different like this.

Second:
image
The Follow bitset define index was a little differant like this.

Third:
image
The order of some valiables which defined in func was differant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions