C# Class IrcShark.Extensions.Scripting.Msl.Parser

Inheritance: ICodeParser
Afficher le fichier Open project: hapm/IrcShark Class Usage Examples

Méthodes publiques

Свойство Type Description
errors Errors
la Token
scanner Scanner
t Token

Méthodes publiques

Méthode Description
AliasDecl ( CodeMemberMethod &method ) : void
AliasName ( string &name ) : void
BooleanEvaluation ( System.CodeDom.CodeExpression expr ) : System.CodeDom.CodeExpression
BooleanEvaluation ( System.CodeDom.CodeExpression expr, string op ) : System.CodeDom.CodeExpression
BooleanEvaluation ( System.CodeDom.CodeExpression expr1, string op, System.CodeDom.CodeExpression expr2 ) : System.CodeDom.CodeExpression
BooleanExpression ( System.CodeDom.CodeExpression &boolExp, ParserState state ) : void
BooleanExpressionParameter ( System.CodeDom.CodeExpression &result, ParserState state ) : void
CallAlias ( System.CodeDom.CodeExpression parameters ) : CodeStatement
CallExecutor ( ) : CodeStatement
CallIdentifier ( string methodName, System.CodeDom.CodeExpression parameters, string property ) : System.CodeDom.CodeExpression
Command ( CodeStatementCollection stmts, ParserState state ) : void
CommandBlock ( CodeStatementCollection result, ParserState state ) : void
CommandLine ( CodeStatementCollection result, ParserState state ) : void
DeclareLocalVariable ( string varname, System.CodeDom.CodeExpression varValue, ParserState state ) : CodeStatement
ElseClause ( CodeStatementCollection result, ParserState state ) : void
ElseIfClause ( CodeConditionStatement &result, ParserState state ) : void
Expect ( int n ) : void
ExpectWeak ( int n, int follow ) : void
Expression ( System.CodeDom.CodeExpression &result, ParserState state ) : void
ExpressionLine ( CodeStatement &result, ParserState state ) : void
ExpressionParameter ( System.CodeDom.CodeExpression &result, ParserState state ) : void
Get ( ) : void
GetVariableValue ( string varname, ParserState state ) : System.CodeDom.CodeExpression
IdentifierCall ( System.CodeDom.CodeExpression &result, ParserState state ) : void
IfClause ( CodeStatement &result, ParserState state ) : void
IsAssignment ( ) : bool
IsElse ( ) : bool
IsElseIf ( ) : bool
IsLocal ( string varname, ParserState state ) : bool
LocalVarDecl ( CodeStatementCollection stmts, ParserState state ) : void
MslParser ( ) : void
Parse ( TextReader reader ) : CodeCompileUnit
Parser ( ) : System
PopText ( ) : CodeStatement
PushText ( ) : CodeStatement
SemErr ( string msg ) : void
SetGlobalVariable ( string varname, System.CodeDom.CodeExpression varValue, ParserState state ) : CodeStatement
SetVariableValue ( string varname, System.CodeDom.CodeExpression varvalue, ParserState state ) : CodeStatement
SetupAlias ( ) : CodeMemberMethod
SetupCommandCall ( ) : CodeMethodInvokeExpression
SetupIfStatement ( ) : CodeConditionStatement

Creates an if statement.

SetupScript ( ) : void

Creates the outer structure of the script compilation file.

SetupScriptClass ( ) : void

Creates the script class.

SetupWhileStatement ( ) : CodeIterationStatement

Creates a while statement.

StaticExpression ( System.CodeDom.CodeExpression &result ) : void
SynErr ( int n ) : void
VarAssignment ( CodeStatement &result, ParserState state ) : void
VarReference ( System.CodeDom.CodeExpression &result, ParserState state ) : void
WhileClause ( CodeStatement &result, ParserState state ) : void

Private Methods

Méthode Description
StartOf ( int s ) : bool
WeakSeparator ( int n, int syFol, int repFol ) : bool

Method Details

AliasDecl() public méthode

public AliasDecl ( CodeMemberMethod &method ) : void
method System.CodeDom.CodeMemberMethod
Résultat void

AliasName() public méthode

public AliasName ( string &name ) : void
name string
Résultat void

BooleanEvaluation() public méthode

public BooleanEvaluation ( System.CodeDom.CodeExpression expr ) : System.CodeDom.CodeExpression
expr System.CodeDom.CodeExpression
Résultat System.CodeDom.CodeExpression

BooleanEvaluation() public méthode

public BooleanEvaluation ( System.CodeDom.CodeExpression expr, string op ) : System.CodeDom.CodeExpression
expr System.CodeDom.CodeExpression
op string
Résultat System.CodeDom.CodeExpression

BooleanEvaluation() public méthode

public BooleanEvaluation ( System.CodeDom.CodeExpression expr1, string op, System.CodeDom.CodeExpression expr2 ) : System.CodeDom.CodeExpression
expr1 System.CodeDom.CodeExpression
op string
expr2 System.CodeDom.CodeExpression
Résultat System.CodeDom.CodeExpression

BooleanExpression() public méthode

public BooleanExpression ( System.CodeDom.CodeExpression &boolExp, ParserState state ) : void
boolExp System.CodeDom.CodeExpression
state System.ParserState
Résultat void

BooleanExpressionParameter() public méthode

public BooleanExpressionParameter ( System.CodeDom.CodeExpression &result, ParserState state ) : void
result System.CodeDom.CodeExpression
state System.ParserState
Résultat void

CallAlias() public méthode

public CallAlias ( System.CodeDom.CodeExpression parameters ) : CodeStatement
parameters System.CodeDom.CodeExpression
Résultat System.CodeDom.CodeStatement

CallExecutor() public méthode

public CallExecutor ( ) : CodeStatement
Résultat System.CodeDom.CodeStatement

CallIdentifier() public méthode

public CallIdentifier ( string methodName, System.CodeDom.CodeExpression parameters, string property ) : System.CodeDom.CodeExpression
methodName string
parameters System.CodeDom.CodeExpression
property string
Résultat System.CodeDom.CodeExpression

Command() public méthode

public Command ( CodeStatementCollection stmts, ParserState state ) : void
stmts System.CodeDom.CodeStatementCollection
state System.ParserState
Résultat void

CommandBlock() public méthode

public CommandBlock ( CodeStatementCollection result, ParserState state ) : void
result System.CodeDom.CodeStatementCollection
state System.ParserState
Résultat void

CommandLine() public méthode

public CommandLine ( CodeStatementCollection result, ParserState state ) : void
result System.CodeDom.CodeStatementCollection
state System.ParserState
Résultat void

DeclareLocalVariable() public méthode

public DeclareLocalVariable ( string varname, System.CodeDom.CodeExpression varValue, ParserState state ) : CodeStatement
varname string
varValue System.CodeDom.CodeExpression
state System.ParserState
Résultat System.CodeDom.CodeStatement

ElseClause() public méthode

public ElseClause ( CodeStatementCollection result, ParserState state ) : void
result System.CodeDom.CodeStatementCollection
state System.ParserState
Résultat void

ElseIfClause() public méthode

public ElseIfClause ( CodeConditionStatement &result, ParserState state ) : void
result System.CodeDom.CodeConditionStatement
state System.ParserState
Résultat void

Expect() public méthode

public Expect ( int n ) : void
n int
Résultat void

ExpectWeak() public méthode

public ExpectWeak ( int n, int follow ) : void
n int
follow int
Résultat void

Expression() public méthode

public Expression ( System.CodeDom.CodeExpression &result, ParserState state ) : void
result System.CodeDom.CodeExpression
state System.ParserState
Résultat void

ExpressionLine() public méthode

public ExpressionLine ( CodeStatement &result, ParserState state ) : void
result System.CodeDom.CodeStatement
state System.ParserState
Résultat void

ExpressionParameter() public méthode

public ExpressionParameter ( System.CodeDom.CodeExpression &result, ParserState state ) : void
result System.CodeDom.CodeExpression
state System.ParserState
Résultat void

Get() public méthode

public Get ( ) : void
Résultat void

GetVariableValue() public méthode

public GetVariableValue ( string varname, ParserState state ) : System.CodeDom.CodeExpression
varname string
state System.ParserState
Résultat System.CodeDom.CodeExpression

IdentifierCall() public méthode

public IdentifierCall ( System.CodeDom.CodeExpression &result, ParserState state ) : void
result System.CodeDom.CodeExpression
state System.ParserState
Résultat void

IfClause() public méthode

public IfClause ( CodeStatement &result, ParserState state ) : void
result System.CodeDom.CodeStatement
state System.ParserState
Résultat void

IsAssignment() public méthode

public IsAssignment ( ) : bool
Résultat bool

IsElse() public méthode

public IsElse ( ) : bool
Résultat bool

IsElseIf() public méthode

public IsElseIf ( ) : bool
Résultat bool

IsLocal() public méthode

public IsLocal ( string varname, ParserState state ) : bool
varname string
state System.ParserState
Résultat bool

LocalVarDecl() public méthode

public LocalVarDecl ( CodeStatementCollection stmts, ParserState state ) : void
stmts System.CodeDom.CodeStatementCollection
state System.ParserState
Résultat void

MslParser() public méthode

public MslParser ( ) : void
Résultat void

Parse() public méthode

public Parse ( TextReader reader ) : CodeCompileUnit
reader TextReader
Résultat System.CodeDom.CodeCompileUnit

Parser() public méthode

public Parser ( ) : System
Résultat System

PopText() public méthode

public PopText ( ) : CodeStatement
Résultat System.CodeDom.CodeStatement

PushText() public méthode

public PushText ( ) : CodeStatement
Résultat System.CodeDom.CodeStatement

SemErr() public méthode

public SemErr ( string msg ) : void
msg string
Résultat void

SetGlobalVariable() public méthode

public SetGlobalVariable ( string varname, System.CodeDom.CodeExpression varValue, ParserState state ) : CodeStatement
varname string
varValue System.CodeDom.CodeExpression
state System.ParserState
Résultat System.CodeDom.CodeStatement

SetVariableValue() public méthode

public SetVariableValue ( string varname, System.CodeDom.CodeExpression varvalue, ParserState state ) : CodeStatement
varname string
varvalue System.CodeDom.CodeExpression
state System.ParserState
Résultat System.CodeDom.CodeStatement

SetupAlias() public méthode

public SetupAlias ( ) : CodeMemberMethod
Résultat System.CodeDom.CodeMemberMethod

SetupCommandCall() public méthode

public SetupCommandCall ( ) : CodeMethodInvokeExpression
Résultat System.CodeDom.CodeMethodInvokeExpression

SetupIfStatement() public méthode

Creates an if statement.
public SetupIfStatement ( ) : CodeConditionStatement
Résultat System.CodeDom.CodeConditionStatement

SetupScript() public méthode

Creates the outer structure of the script compilation file.
public SetupScript ( ) : void
Résultat void

SetupScriptClass() public méthode

Creates the script class.
public SetupScriptClass ( ) : void
Résultat void

SetupWhileStatement() public méthode

Creates a while statement.
public SetupWhileStatement ( ) : CodeIterationStatement
Résultat System.CodeDom.CodeIterationStatement

StaticExpression() public méthode

public StaticExpression ( System.CodeDom.CodeExpression &result ) : void
result System.CodeDom.CodeExpression
Résultat void

SynErr() public méthode

public SynErr ( int n ) : void
n int
Résultat void

VarAssignment() public méthode

public VarAssignment ( CodeStatement &result, ParserState state ) : void
result System.CodeDom.CodeStatement
state System.ParserState
Résultat void

VarReference() public méthode

public VarReference ( System.CodeDom.CodeExpression &result, ParserState state ) : void
result System.CodeDom.CodeExpression
state System.ParserState
Résultat void

WhileClause() public méthode

public WhileClause ( CodeStatement &result, ParserState state ) : void
result System.CodeDom.CodeStatement
state System.ParserState
Résultat void

Property Details

errors public_oe property

public Errors,IrcShark.Extensions.Scripting.Msl errors
Résultat Errors

la public_oe property

public Token la
Résultat Token

scanner public_oe property

public Scanner scanner
Résultat Scanner

t public_oe property

public Token t
Résultat Token