C# Class Irontalk.Compiler

Implements the interpreter (immediate) mode of Irontalk, which also acts as the compiler (since compiling is just message passing done at compile time).
Mostra file Open project: rezonant/irontalk Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Compiler ( ) : System
Compiler ( Assembly assembly ) : System

Evaluate ( InputSource source, Context context ) : STObject
Evaluate ( PerCederberg.Grammatica.Runtime.Node sequence, Context context ) : STObject
Evaluate ( string text ) : STObject
Evaluate ( string str, Context context ) : STObject
EvaluateAssignSend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node assignSend, Context context ) : STObject
EvaluateBinarySend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node binarySend, Context context ) : STObject
EvaluateExpression ( PerCederberg.Grammatica.Runtime.Node expression, Context context ) : STObject
EvaluateKeywordSend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node keywordSend, Context context ) : STObject
EvaluateReceiver ( PerCederberg.Grammatica.Runtime.Node receiver, Context context ) : STObject
EvaluateSend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node message, Context context ) : STObject
EvaluateSimpleSend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node simpleSend, Context context ) : STObject
EvaluateStatement ( PerCederberg.Grammatica.Runtime.Node statement, Context context ) : STObject
EvaluateUnarySend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node unarySend, Context context ) : STObject
GetArrayLiteral ( PerCederberg.Grammatica.Runtime.Node literal, Context context ) : STObject
GetCharLiteral ( PerCederberg.Grammatica.Runtime.Token literal ) : STObject
GetDigitValue ( char literal ) : int
GetDigitValue ( char literal, int maxValue ) : int
GetNumberLiteral ( PerCederberg.Grammatica.Runtime.Token literal ) : STObject
GetStringLiteral ( PerCederberg.Grammatica.Runtime.Token literal ) : STObject
GetSymbolLiteral ( PerCederberg.Grammatica.Runtime.Node literal ) : STObject
GetWordArrayLiteral ( PerCederberg.Grammatica.Runtime.Node literal ) : STObject

Method Details

Compiler() public method

public Compiler ( ) : System
return System

Compiler() public method

public Compiler ( Assembly assembly ) : System
assembly System.Reflection.Assembly The to install compiled classes into.
return System

Evaluate() public method

public Evaluate ( InputSource source, Context context ) : STObject
source InputSource
context Context
return STObject

Evaluate() public method

public Evaluate ( PerCederberg.Grammatica.Runtime.Node sequence, Context context ) : STObject
sequence PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

Evaluate() public method

public Evaluate ( string text ) : STObject
text string
return STObject

Evaluate() public method

public Evaluate ( string str, Context context ) : STObject
str string
context Context
return STObject

EvaluateAssignSend() public method

public EvaluateAssignSend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node assignSend, Context context ) : STObject
receiver STObject
assignSend PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

EvaluateBinarySend() public method

public EvaluateBinarySend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node binarySend, Context context ) : STObject
receiver STObject
binarySend PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

EvaluateExpression() public method

public EvaluateExpression ( PerCederberg.Grammatica.Runtime.Node expression, Context context ) : STObject
expression PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

EvaluateKeywordSend() public method

public EvaluateKeywordSend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node keywordSend, Context context ) : STObject
receiver STObject
keywordSend PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

EvaluateReceiver() public method

public EvaluateReceiver ( PerCederberg.Grammatica.Runtime.Node receiver, Context context ) : STObject
receiver PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

EvaluateSend() public method

public EvaluateSend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node message, Context context ) : STObject
receiver STObject
message PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

EvaluateSimpleSend() public method

public EvaluateSimpleSend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node simpleSend, Context context ) : STObject
receiver STObject
simpleSend PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

EvaluateStatement() public method

public EvaluateStatement ( PerCederberg.Grammatica.Runtime.Node statement, Context context ) : STObject
statement PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

EvaluateUnarySend() public method

public EvaluateUnarySend ( STObject receiver, PerCederberg.Grammatica.Runtime.Node unarySend, Context context ) : STObject
receiver STObject
unarySend PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

GetArrayLiteral() public method

public GetArrayLiteral ( PerCederberg.Grammatica.Runtime.Node literal, Context context ) : STObject
literal PerCederberg.Grammatica.Runtime.Node
context Context
return STObject

GetCharLiteral() public method

public GetCharLiteral ( PerCederberg.Grammatica.Runtime.Token literal ) : STObject
literal PerCederberg.Grammatica.Runtime.Token
return STObject

GetDigitValue() public method

public GetDigitValue ( char literal ) : int
literal char
return int

GetDigitValue() public method

public GetDigitValue ( char literal, int maxValue ) : int
literal char
maxValue int
return int

GetNumberLiteral() public method

public GetNumberLiteral ( PerCederberg.Grammatica.Runtime.Token literal ) : STObject
literal PerCederberg.Grammatica.Runtime.Token
return STObject

GetStringLiteral() public method

public GetStringLiteral ( PerCederberg.Grammatica.Runtime.Token literal ) : STObject
literal PerCederberg.Grammatica.Runtime.Token
return STObject

GetSymbolLiteral() public method

public GetSymbolLiteral ( PerCederberg.Grammatica.Runtime.Node literal ) : STObject
literal PerCederberg.Grammatica.Runtime.Node
return STObject

GetWordArrayLiteral() public method

public GetWordArrayLiteral ( PerCederberg.Grammatica.Runtime.Node literal ) : STObject
literal PerCederberg.Grammatica.Runtime.Node
return STObject