Class: Grammar::RubyCall
Class Method Summary collapse
Instance Method Summary collapse
-
#recurse(inner, expand = false, &outer) ⇒ Object
:yield: engine.
Methods inherited from Ruby
#<<, #[], #alternation, #always, #and, #any, #assign, #backref, #backtrack, #call, #consume, #discard, dump, #dump, #eof, #failure, #if, #initialize, #match, #negative, #not, #or, #output, #pipe, #positive, #redirect, #send, #send_splat, #sequence, #steps, #supply, #variables
Constructor Details
This class inherits a constructor from Grammar::Ruby
Class Method Details
.compile(gram, input_method = :[]) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/grammar/rubycall.rb', line 8 def self.compile(gram, input_method=:[]) code = new(input_method).dump(gram) #p(code) #code.lined eval(code.to_s).new end |
Instance Method Details
#recurse(inner, expand = false, &outer) ⇒ Object
:yield: engine
14 15 16 |
# File 'lib/grammar/rubycall.rb', line 14 def recurse(inner, =false, &outer) # :yield: engine ? super : call(inner, &outer) end |