C# 클래스 While.Parsing.Parser

파일 보기 프로젝트 열기: einaregilsson/While-Language 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
errors Errors
la Token
scanner Scanner
t Token

Private Properties

프로퍼티 타입 설명
ExpectBool bool
ExpectInt bool
ExpectIntArg void
IsProcProgram bool
IsStartOfResultArg bool
StartOf bool
ToStatementSequence While.AST.Sequences.StatementSequence

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Args() 공개 메소드

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

AssignStmt() 공개 메소드

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

BitAnd() 공개 메소드

public BitAnd ( Expression &exp ) : void
exp Expression
리턴 void

BitOr() 공개 메소드

public BitOr ( Expression &exp ) : void
exp Expression
리턴 void

BitShift() 공개 메소드

public BitShift ( Expression &exp ) : void
exp Expression
리턴 void

BitXor() 공개 메소드

public BitXor ( Expression &exp ) : void
exp Expression
리턴 void

BlockStmt() 공개 메소드

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

CallProc() 공개 메소드

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

Comparison() 공개 메소드

public Comparison ( Expression &exp ) : void
exp Expression
리턴 void

Expect() 공개 메소드

public Expect ( int n ) : void
n int
리턴 void

Expr() 공개 메소드

public Expr ( Expression &exp ) : void
exp Expression
리턴 void

Get() 공개 메소드

public Get ( ) : void
리턴 void

IfStmt() 공개 메소드

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

LogicAnd() 공개 메소드

public LogicAnd ( Expression &exp ) : void
exp Expression
리턴 void

LogicOr() 공개 메소드

public LogicOr ( Expression &exp ) : void
exp Expression
리턴 void

LogicXor() 공개 메소드

public LogicXor ( Expression &exp ) : void
exp Expression
리턴 void

MulDivMod() 공개 메소드

public MulDivMod ( Expression &exp ) : void
exp Expression
리턴 void

Parse() 공개 메소드

public Parse ( ) : void
리턴 void

Parser() 공개 메소드

public Parser ( Scanner scanner, CommandLineOptions options ) : System
scanner Scanner
options CommandLineOptions
리턴 System

PlusMinus() 공개 메소드

public PlusMinus ( Expression &exp ) : void
exp Expression
리턴 void

Proc() 공개 메소드

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

Program() 공개 메소드

public Program ( ) : void
리턴 void

ReadStmt() 공개 메소드

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

SemErr() 공개 메소드

public SemErr ( string msg ) : void
msg string
리턴 void

Stmt() 공개 메소드

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

StmtSeq() 공개 메소드

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

SynErr() 공개 메소드

public SynErr ( int n ) : void
n int
리턴 void

Terminal() 공개 메소드

public Terminal ( Expression &exp ) : void
exp Expression
리턴 void

UnaryOperator() 공개 메소드

public UnaryOperator ( Expression &exp ) : void
exp Expression
리턴 void

VarDec() 공개 메소드

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

VarDecStmt() 공개 메소드

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

WhileStmt() 공개 메소드

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

프로퍼티 상세

errors 공개적으로 프로퍼티

public Errors,While.Parsing errors
리턴 Errors

la 공개적으로 프로퍼티

public Token,While.Parsing la
리턴 Token

scanner 공개적으로 프로퍼티

public Scanner,While.Parsing scanner
리턴 Scanner

t 공개적으로 프로퍼티

public Token,While.Parsing t
리턴 Token