Help for this page

Select Code to Download


  1. or download this
    #---------------------------------------------------------------------
    +-------
    # LEXER section.  Grab tokens and feed to the recognizer
    ...
            $token=undef;
        }
    }
    
  2. or download this
    my $TG = Marpa::R2::Grammar->new({
            start=>'FILE', actions=>'ToyLang', default_action=>'swallow',
    ...
                [ mulop=>[qw( OP_DIV )], ],
            ],
    });