Method: BBSexp::Compiler#initialize
- Defined in:
- lib/bbsexp/compiler.rb
#initialize(parser, text) ⇒ Compiler
Returns a new instance of Compiler.
3 4 5 6 7 8 9 10 11 |
# File 'lib/bbsexp/compiler.rb', line 3 def initialize(parser, text) @parser = parser @text = text @result = '' @stack = [] @func_stack = [] @state = [3] @locks = Hash[ @parser.exps.keys.map{|k| [k, false] } ] end |