Help for this page

Select Code to Download


  1. or download this
    my $grammar = q {
      startrule: test
        test:      "primary"(?) "key"
    };
    
  2. or download this
    ERROR (line 4): Untranslatable item encountered: "?"
                    (Hint: Did you misspell "?" or forget to comment it ou
    +t?)
    
  3. or download this
    Parse::RecDescent: Treating "startrule:" as a rule declaration
        Parse::RecDescent: Treating "test" as a subrule match
    ...
        Parse::RecDescent: Treating "_alternation_1_of_production_1_of_rul
    +e_test"
                           as a subrule match
        Parse::RecDescent: Treating ""key"" as an interpolated literal ter
    +minal