Help for this page

Select Code to Download


  1. or download this
    names = John Joe "Mary Sue" James
    
  2. or download this
    startrule:             calculation
    statement:             grouped_op | number
    ...
    add_calculation:       statement '+' statement
    subtract_calculation:  statement '-' statement
    number:                /\d+/
    
  3. or download this
    #!/usr/bin/perl -wT
    
    ...
         print $test . ': ' .
             ( defined($parser->startrule( $test ) )?"good":"bad") . "\n";
    }
    
  4. or download this
    #!/usr/bin/perl -wT
    
    ...
    #6 + (3 - 2): 7
    #(6 + (3 - 2)) + 1: 8