@api private
# File lib/parslet/accelerator/engine.rb, line 108 def bind var, val @bindings[var] = val end
# File lib/parslet/accelerator/engine.rb, line 102 def bound? var @bindings.has_key? var end
# File lib/parslet/accelerator/engine.rb, line 105 def lookup var @bindings[var] end
# File lib/parslet/accelerator/engine.rb, line 83 def match(atom, expr) atom.accept( Apply.new(self, expr)) end
# File lib/parslet/accelerator/engine.rb, line 88 def try_bind(variable, value) if bound? variable return value == lookup(variable) else case variable when Symbol bind(variable, value) else # This does not look like a variable - let's try matching it against # the value: variable === value end end end
Generated with the Darkfish Rdoc Generator 2.