enum ArgumentForm: string
Public API: explicitly declared with @visibility public.

How the argument of a declaration was written.

Lemon accepts a { code } block, a "string" or a bare word after the keyword and strips only the delimiters, so the tree records which form it was to write it back the same way.

Reading the formsdoctest
$file = (new \LemonParser\Parser())->parse("%name Calc\n%token_prefix \"TK_\"\n%include { int x; }\n");
    array_map(static fn ($d) => $d->form->value, $file->declarations()) // => ['word', 'string', 'code']

Cases§

case Code = 'code'
case String = 'string'
case Word = 'word'

Test cases 14§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 13

Relations§

Constant reads 6
Type declarations 4