Method: Rucc::Type::Check#is_arithtype

Defined in:
lib/rucc/type/check.rb

#is_arithtype(ty) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


6
7
8
# File 'lib/rucc/type/check.rb', line 6

def is_arithtype(ty)
  is_inttype(ty) || is_flotype(ty)
end