lib/antelope/generation/constructor.rb in antelope-0.2.4 vs lib/antelope/generation/constructor.rb in antelope-0.3.0
- old
+ new
@@ -16,21 +16,21 @@
include First
include Follow
# The grammar.
#
- # @return [Ace::Grammar]
+ # @return [Grammar::Grammar]
attr_reader :grammar
# The augmented productions generated by the constructor.
#
- # @return [Set<Ace::Production>]
+ # @return [Set<Grammar::Production>]
attr_reader :productions
# Initialize.
#
- # @param grammar [Ace::Grammar] the grammar.
+ # @param grammar [Grammar::Grammar] the grammar.
def initialize(grammar)
@productions = Set.new
@grammar = grammar
super()
end
@@ -118,10 +118,10 @@
end
private
def incorrect_argument!(arg, *types)
- raise ArgumentError, "Expected one of #{types.join(", ")}, got #{arg.class}"
+ raise ArgumentError, "Expected one of #{types.join(', ')}, got #{arg.class}"
end
end
end
end