lib/rley/parser/parse_state.rb in rley-0.0.04 vs lib/rley/parser/parse_state.rb in rley-0.0.05

- old
+ new

@@ -1,8 +1,7 @@ module Rley # This module is used as a namespace module Parser # This module is used as a namespace - class ParseState attr_reader(:dotted_rule) # the position in the input that matches the beginning of the rhs # of the production. @@ -13,11 +12,11 @@ @origin = theOrigin end # Equality comparison. A parse state behaves as a value object. def ==(other) - return true if self.object_id == other.object_id + return true if object_id == other.object_id if (dotted_rule == other.dotted_rule) && (origin == other.origin) result = true else result = false @@ -43,12 +42,10 @@ def valid_dotted_rule(aDottedRule) fail StandardError, 'Dotted item cannot be nil' if aDottedRule.nil? return aDottedRule end - end # class - end # module end # module -# End of file \ No newline at end of file +# End of file