module Rucc::Parser::Break

Private Instance Methods

read_break_stmt(tok) click to toggle source

@param [Token] tok @return [Node]

# File lib/rucc/parser/break.rb, line 9
def read_break_stmt(tok)
  expect!(';')
  if !@lbreak
    Util.errort!(tok, "stray break statement")
  end
  Node.ast_jump(@lbreak)
end