Table of Contents

About

A parser rule is a rule that defines the structure of the parse tree.

The parser uses them to build the parse tree.

The lexer rules specify the tokens whereas the parser rules specify the tree.

Syntax

Parser rule names always start with a lowercase letter (

whereas Lexer rule names (known als as Token name) must begin with an uppercase letter.

)