antlr-rust-runtime 0.15.0

High performance Rust runtime and target support for ANTLR v4 generated parsers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
parser grammar ParserLeftRecursionFull;

tokens { INT, MINUS, POWER, QUESTION, COLON, PLUS, BANG }

start : expression EOF ;

expression returns [int value]
    : MINUS expression
    | INT
    | <assoc=right> left=expression POWER right=expression
    | <assoc=right> expression QUESTION expression COLON expression
    | expression PLUS {notify();} expression
    | expression BANG
    ;