Help for this page

Select Code to Download


  1. or download this
    text:      struct  {   int   foo   ;   int   bar   ;   }
               ------  -   ---   ---   -   ---   ---   -   -
    ...
                                  struct
               ---------------------------------------------
                                  parse
    
  2. or download this
    parse : foo1 foo2
          | bar1 bar2
    
  3. or download this
    use strict;
    use warnings;
    ...
    
    Parse::RecDescent->Precompile($grammar, 'Grammar')
       or die("Bad grammar\n");
    
  4. or download this
    use strict;
    use warnings;
    ...
    print("\n");
    
    print(Dumper($matches));
    
  5. or download this
    foo1
    bar1
    ...
                'Z'
              ]
            ];