Class: Brainfucktt::Language::DecrementByte
- Inherits:
-
Node
- Object
- Treetop::Runtime::SyntaxNode
- Node
- Brainfucktt::Language::DecrementByte
- Defined in:
- lib/brainfucktt/language/decrement_byte.rb
Overview
-
Instance Method Summary collapse
-
#run(parser) ⇒ Object
Decrement the byte at the pointer.
Methods inherited from Node
Instance Method Details
#run(parser) ⇒ Object
Decrement the byte at the pointer.
10 11 12 |
# File 'lib/brainfucktt/language/decrement_byte.rb', line 10 def run(parser) parser.byte -= 1 end |