Grammar Terms

Terms identify where tokens are consumed.

Types of Term

Type

Description

Concrete terms

Quoted strings.

e.g. "class"

 

Unicode characters

A lexer-only term, having the prefix of U+0x followed by a hexadecimal number.

e.g. U+0x1234

 

Ranges

A lexer-only term, matching any character between the two characters specified.

e.g.   "a".."z"      or         U+0x1234..U+2345

 

References

The name of another rule, in angled brackets. The token will match if that rule succeeds.

e.g. <anotherRule>

 

Commands

 

A call to a specific command.

Learn more