Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Yacc Extensions

At the beginning of a .y file is a %grmtools{} section, by default this section is required. But a default can be set or forced by using a YaccKindResolver.

FlagValueRequired
yacckindYaccKind✓
recoverykindRecoveryKind✗
test_files1Array of string values✗
serialisation_format2lrpar::SerialisationFormat✗

Example

%grmtools{yacckind: Grmtools}
%%
Start: ;

  1. Strings containing globs are resolved relative to the yacc .y source file. test_files is currently experimental. ↩

  2. Modifies the encoding algorithm used to serialise parser data in the generated code. ↩