Preparing search index...
The search index is not available
Beerlang
Beerlang
src/types
BeerFunction
Class BeerFunction
Represents a Beer function.
Hierarchy
BeerCallable
BeerFunction
Index
Constructors
constructor
Properties
closure
declaration
is_
initializer
Return
Methods
arity
bind
call
to_
string
Constructors
constructor
new
Beer
Function
(
declaration
,
closure
,
is_initializer
?
)
:
BeerFunction
Parameters
declaration
:
FunctionStmt
closure
:
Environment
is_initializer
:
boolean
= false
Returns
BeerFunction
Properties
Private
closure
closure
:
Environment
Private
declaration
declaration
:
FunctionStmt
Private
is_
initializer
is_
initializer
:
boolean
= false
Static
Return
Return
:
typeof
Return
= ...
Methods
arity
arity
(
)
:
number
Returns
number
bind
bind
(
instance
)
:
BeerFunction
Parameters
instance
:
BeerInstance
Returns
BeerFunction
call
call
(
interpreter
,
args
)
:
BeerObject
Parameters
interpreter
:
Beer
args
:
BeerObject
[]
Returns
BeerObject
to_
string
to_
string
(
)
:
string
Returns
string
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
closure
declaration
is_
initializer
Return
arity
bind
call
to_
string
Beerlang
Beer
src/ast
src/environment
src/error.ts
src/interpreter
src/parser
src/read_source
src/resolver
src/runner
src/scanner
src/token
src/types
Generated using
TypeDoc
Represents a Beer function.