Options accepted by the FSL parser and its wrap_parse wrapper
(exported from the package as parse). Exists so the two-argument parse
call is typed against what the parser actually reads, instead of a bare
object.
locations — when true, the grammar attaches a loc field of type
FslSourceLocation (plus curated *_loc token sub-spans) to every
AST node. When absent or false, the tree is byte-for-byte identical to
the historical location-free output.
startRule — honored by the generated PEG.js boilerplate, which throws
on any rule name it doesn't expose. This grammar exposes only its
default rule, Document, so the field is only useful for explicitness.
Options accepted by the FSL parser and its wrap_parse wrapper (exported from the package as
parse). Exists so the two-argument parse call is typed against what the parser actually reads, instead of a bareobject.locations— whentrue, the grammar attaches alocfield of type FslSourceLocation (plus curated*_loctoken sub-spans) to every AST node. When absent orfalse, the tree is byte-for-byte identical to the historical location-free output.startRule— honored by the generated PEG.js boilerplate, which throws on any rule name it doesn't expose. This grammar exposes only its default rule,Document, so the field is only useful for explicitness.See
FslSourceLocation