Introduction to Antlr
Andreas Stefik
Antlr is a Language for Creating Languages
Antlr uses "Finite Automata" and "Context Free Grammars" Behind the Scenes
Let's Dissect an Antlr Grammar
grammar Interpreter;
start :
expression EOF
;
expression
:
| INT
| expression (PLUS | MINUS) expression
;
PLUS : '+';
MINUS : '-';
INT : '0'..'9'+;
Name
Parser Rules
Lexer Rules
Live Programming Session
Using and Interacting with Grammars