abstract class Cosmo::IntrinsicFunction

Direct Known Subclasses

Defined in:

cosmo/runtime/intrinsic/global.cr

Constructors

Instance Method Summary

Instance methods inherited from class Cosmo::Callable

arity : Range(UInt32, UInt32) arity, call(args : Array(ValueType)) : ValueType call, intrinsic? : Bool intrinsic?, to_s : String to_s

Constructor Detail

def self.new(interpreter : Interpreter) #

Instance Method Detail

abstract def call(args : Array(ValueType)) : ValueType #

def intrinsic? : Bool #

def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


def token(name : String) : Token #