Class: Oryx::Lexer

Inherits:
RLTK::Lexer
  • Object
show all
Defined in:
lib/oryx/lexer.rb

Instance Method Summary collapse

Instance Method Details

#lex(string, file_name = nil) ⇒ Object



84
85
86
87
88
89
90
# File 'lib/oryx/lexer.rb', line 84

def lex string, file_name = nil
  tokens = super
  if env.flags.include? :c_comment
    tokens.insert -2, RLTK::Token.new(:MCOMTER)
  end
  tokens
end