Method: TestML::Compiler::Lite#parse_assignment
- Defined in:
- lib/testml/compiler/lite.rb
#parse_assignment ⇒ Object
62 63 64 65 66 67 68 69 70 |
# File 'lib/testml/compiler/lite.rb', line 62 def parse_assignment return unless peek(2) == '=' var, op = pop(2) expr = parse_expression pop if !done and peek == ';' fail_() unless done @function.statements.push TestML::Assignment.new(var, expr) return true end |