Method: RLTK::CFG#callback

Defined in:
lib/rltk/cfg.rb

#callback(&callback) ⇒ void

This method returns an undefined value.

Sets the EBNF callback to callback.

Parameters:

  • callback (Proc)

    A Proc object to be called when EBNF operators are expanded and list productions are added.



285
286
287
288
289
# File 'lib/rltk/cfg.rb', line 285

def callback(&callback)
  @callback = callback if callback

  nil
end