class Lexer
Public Class Methods
Source
# File development/compressed_state_table/parser.rb, line 257 def initialize(tokens) @tokens = tokens @index = 0 end
Public Instance Methods
Source
# File development/compressed_state_table/parser.rb, line 262 def next_token if @tokens.length > @index token = @tokens[@index] @index += 1 return token else return Parser::SYM_EOF end end