C# Class While.Parsing.Parser

Mostrar archivo Open project: einaregilsson/While-Language Class Usage Examples

Public Properties

Property Type Description
errors Errors
la Token
scanner Scanner
t Token

Private Properties

Property Type Description
ExpectBool bool
ExpectInt bool
ExpectIntArg void
IsProcProgram bool
IsStartOfResultArg bool
StartOf bool
ToStatementSequence While.AST.Sequences.StatementSequence

Public Methods

Method Description
Args ( VariableSequence valArgs, Variable &resultArg ) : void
AssignStmt ( Statement &assign ) : void
BitAnd ( Expression &exp ) : void
BitOr ( Expression &exp ) : void
BitShift ( Expression &exp ) : void
BitXor ( Expression &exp ) : void
BlockStmt ( Statement &block ) : void
CallProc ( Statement &callStmt ) : void
Comparison ( Expression &exp ) : void
Expect ( int n ) : void
Expr ( Expression &exp ) : void
Get ( ) : void
IfStmt ( Statement &ifStmt ) : void
LogicAnd ( Expression &exp ) : void
LogicOr ( Expression &exp ) : void
LogicXor ( Expression &exp ) : void
MulDivMod ( Expression &exp ) : void
Parse ( ) : void
Parser ( Scanner scanner, CommandLineOptions options ) : System
PlusMinus ( Expression &exp ) : void
Proc ( ProcedureSequence procs ) : void
Program ( ) : void
ReadStmt ( Statement &stmt ) : void
SemErr ( string msg ) : void
Stmt ( Statement &stmt ) : void
StmtSeq ( StatementSequence &statements ) : void
SynErr ( int n ) : void
Terminal ( Expression &exp ) : void
UnaryOperator ( Expression &exp ) : void
VarDec ( VariableDeclarationSequence vars ) : void
VarDecStmt ( VariableDeclarationSequence &vars ) : void
WhileStmt ( Statement &whileStmt ) : void

Private Methods

Method Description
ExpectBool ( Expression exp, Token t, bool isRightHandSide ) : bool
ExpectInt ( Expression exp, Token t, bool isRightHandSide ) : bool
ExpectIntArg ( Expression exp, Token t ) : void
IsProcProgram ( ) : bool
IsStartOfResultArg ( ) : bool
StartOf ( int s ) : bool
ToStatementSequence ( Statement s ) : StatementSequence

Method Details

Args() public method

public Args ( VariableSequence valArgs, Variable &resultArg ) : void
valArgs While.AST.Sequences.VariableSequence
resultArg Variable
return void

AssignStmt() public method

public AssignStmt ( Statement &assign ) : void
assign While.AST.Statements.Statement
return void

BitAnd() public method

public BitAnd ( Expression &exp ) : void
exp Expression
return void

BitOr() public method

public BitOr ( Expression &exp ) : void
exp Expression
return void

BitShift() public method

public BitShift ( Expression &exp ) : void
exp Expression
return void

BitXor() public method

public BitXor ( Expression &exp ) : void
exp Expression
return void

BlockStmt() public method

public BlockStmt ( Statement &block ) : void
block While.AST.Statements.Statement
return void

CallProc() public method

public CallProc ( Statement &callStmt ) : void
callStmt While.AST.Statements.Statement
return void

Comparison() public method

public Comparison ( Expression &exp ) : void
exp Expression
return void

Expect() public method

public Expect ( int n ) : void
n int
return void

Expr() public method

public Expr ( Expression &exp ) : void
exp Expression
return void

Get() public method

public Get ( ) : void
return void

IfStmt() public method

public IfStmt ( Statement &ifStmt ) : void
ifStmt While.AST.Statements.Statement
return void

LogicAnd() public method

public LogicAnd ( Expression &exp ) : void
exp Expression
return void

LogicOr() public method

public LogicOr ( Expression &exp ) : void
exp Expression
return void

LogicXor() public method

public LogicXor ( Expression &exp ) : void
exp Expression
return void

MulDivMod() public method

public MulDivMod ( Expression &exp ) : void
exp Expression
return void

Parse() public method

public Parse ( ) : void
return void

Parser() public method

public Parser ( Scanner scanner, CommandLineOptions options ) : System
scanner Scanner
options CommandLineOptions
return System

PlusMinus() public method

public PlusMinus ( Expression &exp ) : void
exp Expression
return void

Proc() public method

public Proc ( ProcedureSequence procs ) : void
procs While.AST.Sequences.ProcedureSequence
return void

Program() public method

public Program ( ) : void
return void

ReadStmt() public method

public ReadStmt ( Statement &stmt ) : void
stmt While.AST.Statements.Statement
return void

SemErr() public method

public SemErr ( string msg ) : void
msg string
return void

Stmt() public method

public Stmt ( Statement &stmt ) : void
stmt While.AST.Statements.Statement
return void

StmtSeq() public method

public StmtSeq ( StatementSequence &statements ) : void
statements While.AST.Sequences.StatementSequence
return void

SynErr() public method

public SynErr ( int n ) : void
n int
return void

Terminal() public method

public Terminal ( Expression &exp ) : void
exp Expression
return void

UnaryOperator() public method

public UnaryOperator ( Expression &exp ) : void
exp Expression
return void

VarDec() public method

public VarDec ( VariableDeclarationSequence vars ) : void
vars While.AST.Sequences.VariableDeclarationSequence
return void

VarDecStmt() public method

public VarDecStmt ( VariableDeclarationSequence &vars ) : void
vars While.AST.Sequences.VariableDeclarationSequence
return void

WhileStmt() public method

public WhileStmt ( Statement &whileStmt ) : void
whileStmt While.AST.Statements.Statement
return void

Property Details

errors public_oe property

public Errors,While.Parsing errors
return Errors

la public_oe property

public Token,While.Parsing la
return Token

scanner public_oe property

public Scanner,While.Parsing scanner
return Scanner

t public_oe property

public Token,While.Parsing t
return Token