On Wed, Sep 26, 2012 at 10:11 AM, rns <sor...@gmail.com> wrote:
> Is _subj_ (used, e.g., in  Marpa-Simple-Lexer ) official?
> It worked for me in Marpa::R2 but will it be supported? I've found nothing
> about it in the R2's doc so it's probably not.
> A list of key/value pairs, e.g. [ lhs => [qw(symbol1 symbol2)], action =>
> 'sub_name' ] doesn't work in R2 and probably shouldn't.
> I kind of like the terseness.
>> [ condition => [qw(word)] ],
>> [ condition => [qw(quoted)] ],
>> [ condition => [qw(OPEN-PAREN SPACE? query SPACE? CLOSE-PAREN)] ],
>> [ condition => [qw(NOT condition)] ],
>> [ 'SPACE?' =>  ],
>> [ 'SPACE?' => [qw(SPACE)] ],
> — https://github.com/ruz/Marpa-Simple-Lexer/blob/master/examples/synopsis.pl