Previous: Type properties with a special meaning, Up: Auto-generation of lexical rules


4.2.3 Predefined well-known types

Default values are provided for well known types like <keyword>, <symbol>, <string>, <number>, <punctuation>, and <block>. Those types assume that the correct patterns are provided by %keyword and %token statements, a simple "%type <type>" declaration should generally suffice to auto-generate a suitable lexical rule.

keyword
symbol
string
number
punctuation
block