Skip to content

sunxien/antlr4-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Install Antlr4 Tools on MacOS 2. pip3 install antlr4-tools

  2. Clone Antlr4 Repository 3. URL: git clone git@github.com:antlr/grammars-v4.git

  3. Getting Started with Antlr4 4. URL: https://github.com/antlr/antlr4/blob/master/doc/getting-started.md 5. Java Target: https://github.com/antlr/antlr4/blob/master/doc/java-target.md

  4. Go to Antlr4-Lab

  5. Introduce to Grammar File 6. ```antlrv4 /** Optional javadoc style comment */ [lexer|parser] grammar Name; options {...} import ...; tokens {...} channels {...} // lexer only @actionName {...} rule1 // parser and lexer rules, possibly intermingled ... ruleN

    
    
    
    
    

References

  1. The Definitive ANTLR 4 Reference
  2. Antlr4 Documentation
  3. Antlr4 issue list
  4. RRD for Antlr4
  5. RRD for Antlr4 Maven Plugin

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published