Graphviz and Friends

Slide 16/16 -- First Previous Next Last
Yet more features of Marpa

o The scanless (SLIF) interface is the newest
my $grammar = Marpa::R2::Scanless::G->new(
    {   action_object  => 'My_Nodes',
        default_action => '::first', # '::first' is a reserved word.
        source         => \(<<'END_OF_SOURCE'),
:start ::= Expression
Expression ::= Term
Term ::=
      Factor
    | Term '+' Term action => do_add
Factor ::=
      Number
    | Factor '*' Factor action => do_multiply
      Number ~ digits
      digits ~ [\d]+
      :discard ~ whitespace
      whitespace ~ [\s]+
END_OF_SOURCE
    }
);		
o Remember the annotated blog
o And homepage