Welcome to the ANTLR lab, where you can learn about ANTLR or experiment with and test grammars! Just hit the button to try out the sample grammar.

To start developing with ANTLR, see getting started.

Feedback/issues welcome. Brought to you by Terence Parr, the maniac behind ANTLR.

Disclaimer: This website and related functionality are not meant to be used for private code, data, or other intellectual property. Assume everything you enter could become public! Grammars and input you enter are submitted to a unix box for execution and possibly persisted on disk or other mechanism. Please run antlr4-lab locally to avoid privacy concerns.

Lexer Parser    

Start rule 

Tool console
Parser console

Tree  Hierarchy

Parser profile info