Module: Rucc::Parser::Expr

Included in:
Rucc::Parser
Defined in:
lib/rucc/parser/expr.rb

Instance Method Summary collapse

Instance Method Details

#read_exprNode

Returns:



6
7
8
9
10
11
12
13
# File 'lib/rucc/parser/expr.rb', line 6

def read_expr
  tok = peek
  r = read_comma_expr
  if r.nil?
    Util.errort!(tok, "expression expected")
  end
  r
end