Class: Brainfuck::AST::Script
- Inherits:
-
Struct
- Object
- Struct
- Brainfuck::AST::Script
- Defined in:
- lib/brainfuck/ast.rb
Instance Attribute Summary collapse
-
#exp ⇒ Object
Returns the value of attribute exp.
Instance Method Summary collapse
Instance Attribute Details
#exp ⇒ Object
Returns the value of attribute exp
132 133 134 |
# File 'lib/brainfuck/ast.rb', line 132 def exp @exp end |
Instance Method Details
#bytecode(g) ⇒ Object
133 134 135 136 137 |
# File 'lib/brainfuck/ast.rb', line 133 def bytecode(g) exp.each do |e| e.bytecode(g) end end |