In Files

Parent

Files

ParseDoCond

Public Class Methods

new(lexer,parent=nil) click to toggle source
# File lib/saikuro.rb, line 534
def initialize(lexer,parent=nil)
  super(lexer,parent)
  @looking_for_new_line = true
end

Public Instance Methods

parse_token(token) click to toggle source

Need to consume the do that can appear at the end of these control structures.

# File lib/saikuro.rb, line 541
def parse_token(token)
  if @looking_for_new_line
    if token.is_a?(TkDO)
      nil
    else
      if token.is_a?(TkNL)
        @looking_for_new_line = false
      end
      super(token)
    end
  else
    super(token)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.