spec/rley/support/grammar_ambig01_helper.rb in rley-0.5.05 vs spec/rley/support/grammar_ambig01_helper.rb in rley-0.5.06
- old
+ new
@@ -1,8 +1,8 @@
# Load the builder class
require_relative '../../../lib/rley/syntax/grammar_builder'
-require_relative '../../../lib/rley/tokens/token'
+require_relative '../../../lib/rley/lexical/token'
module GrammarAmbig01Helper
########################################
# Factory method. Define a grammar for a very simple language
@@ -30,10 +30,10 @@
terminal = aGrammar.name2symbol['integer']
else
msg = "Unknown input text '#{lexeme}'"
raise StandardError, msg
end
- Rley::Tokens::Token.new(lexeme, terminal)
+ Rley::Lexical::Token.new(lexeme, terminal)
end
return tokens
end
end # module