method

do_parse

v2_4_6 - Show latest stable - Class: Racc::Parser
do_parse()
public

The entry point of the parser. This method is used with #next_token. If Racc wants to get token (and its value), calls next_token.

Example:

def parse
  @q = [[1,1],
        [2,2],
        [3,3],
        [false, '$']]
  do_parse
end

def next_token
  @q.shift
end