class FayrantLang::AST::FunctionDeclarationStatement

Defined in:

ast/statement.cr

Constructors

Instance Method Summary

Instance methods inherited from class FayrantLang::AST::Statement

==(other) ==, exec(ctx : Context) : Tuple(ExecResult, AnyValue) exec

Constructor Detail

def self.new(name : String, params : Array(String), body : Array(Statement)) #

[View source]

Instance Method Detail


[View source]
def body : Array(FayrantLang::AST::Statement) #

[View source]
def exec(ctx : Context) : Tuple(ExecResult, AnyValue) #

[View source]
def name : String #

[View source]
def params : Array(String) #

[View source]