C# Class While.Parsing.Parser

Afficher le fichier Open project: einaregilsson/While-Language Class Usage Examples

Méthodes publiques

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

Private Properties

Свойство Type Description
ExpectBool bool
ExpectInt bool
ExpectIntArg void
IsProcProgram bool
IsStartOfResultArg bool
StartOf bool
ToStatementSequence While.AST.Sequences.StatementSequence

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

AssignStmt() public méthode

public AssignStmt ( Statement &assign ) : void
assign While.AST.Statements.Statement
Résultat void

BitAnd() public méthode

public BitAnd ( Expression &exp ) : void
exp Expression
Résultat void

BitOr() public méthode

public BitOr ( Expression &exp ) : void
exp Expression
Résultat void

BitShift() public méthode

public BitShift ( Expression &exp ) : void
exp Expression
Résultat void

BitXor() public méthode

public BitXor ( Expression &exp ) : void
exp Expression
Résultat void

BlockStmt() public méthode

public BlockStmt ( Statement &block ) : void
block While.AST.Statements.Statement
Résultat void

CallProc() public méthode

public CallProc ( Statement &callStmt ) : void
callStmt While.AST.Statements.Statement
Résultat void

Comparison() public méthode

public Comparison ( Expression &exp ) : void
exp Expression
Résultat void

Expect() public méthode

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

Expr() public méthode

public Expr ( Expression &exp ) : void
exp Expression
Résultat void

Get() public méthode

public Get ( ) : void
Résultat void

IfStmt() public méthode

public IfStmt ( Statement &ifStmt ) : void
ifStmt While.AST.Statements.Statement
Résultat void

LogicAnd() public méthode

public LogicAnd ( Expression &exp ) : void
exp Expression
Résultat void

LogicOr() public méthode

public LogicOr ( Expression &exp ) : void
exp Expression
Résultat void

LogicXor() public méthode

public LogicXor ( Expression &exp ) : void
exp Expression
Résultat void

MulDivMod() public méthode

public MulDivMod ( Expression &exp ) : void
exp Expression
Résultat void

Parse() public méthode

public Parse ( ) : void
Résultat void

Parser() public méthode

public Parser ( Scanner scanner, CommandLineOptions options ) : System
scanner Scanner
options CommandLineOptions
Résultat System

PlusMinus() public méthode

public PlusMinus ( Expression &exp ) : void
exp Expression
Résultat void

Proc() public méthode

public Proc ( ProcedureSequence procs ) : void
procs While.AST.Sequences.ProcedureSequence
Résultat void

Program() public méthode

public Program ( ) : void
Résultat void

ReadStmt() public méthode

public ReadStmt ( Statement &stmt ) : void
stmt While.AST.Statements.Statement
Résultat void

SemErr() public méthode

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

Stmt() public méthode

public Stmt ( Statement &stmt ) : void
stmt While.AST.Statements.Statement
Résultat void

StmtSeq() public méthode

public StmtSeq ( StatementSequence &statements ) : void
statements While.AST.Sequences.StatementSequence
Résultat void

SynErr() public méthode

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

Terminal() public méthode

public Terminal ( Expression &exp ) : void
exp Expression
Résultat void

UnaryOperator() public méthode

public UnaryOperator ( Expression &exp ) : void
exp Expression
Résultat void

VarDec() public méthode

public VarDec ( VariableDeclarationSequence vars ) : void
vars While.AST.Sequences.VariableDeclarationSequence
Résultat void

VarDecStmt() public méthode

public VarDecStmt ( VariableDeclarationSequence &vars ) : void
vars While.AST.Sequences.VariableDeclarationSequence
Résultat void

WhileStmt() public méthode

public WhileStmt ( Statement &whileStmt ) : void
whileStmt While.AST.Statements.Statement
Résultat void

Property Details

errors public_oe property

public Errors,While.Parsing errors
Résultat Errors

la public_oe property

public Token,While.Parsing la
Résultat Token

scanner public_oe property

public Scanner,While.Parsing scanner
Résultat Scanner

t public_oe property

public Token,While.Parsing t
Résultat Token