Help for this page

Select Code to Download


  1. or download this
     sub lexer { 
        my($parser)=shift;
    ...
        return ('ID',  $1) if $$s =~ m/\G([A-Z]\w*)/gc;
        ...  # and it goes on for many tentative matches
     }
    
  2. or download this
      *_ = $parser->YYData->{INPUT}; # reference to the string to lex