alpag.net manual
Lexer / Programming interface / Code generation options
< Debugging | Parser >

Code generation options

Options in Lexer.Code.Rules group control some aspects of code generated for handling lexer productions. These options are:

Lexer.Code.Rules.EmitWhenEmpty

When this option is enabled generated lexer will contain code blocks even for these productions that have no user code attached. Option useful when debugging.

Lexer.Code.Rules.EmitShared

Multiple lexer rules may share a common code block. When this option is enabled instead of single code block multiple copies of this block will be placed in generated lexer. Option useful when debugging.

Lexer.Code.Rules.AutoBreak

When this option is on each user-provided production code is automatically terminated with break instruction. When off user must provide such instructions himself.

Lexer.Code.Rules.DisableWarnings

When set to true compiler warnings related to unreachable break instructions will be silenced.

< Debugging | Parser >
Alpag Manual