C# Класс ProgrammingLanguageNr1.Parser

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Parser ( List tokens, ProgrammingLanguageNr1.ErrorHandler errorHandler ) : System
backtrackToToken ( Token pToken ) : void
consumeCurrentToken ( ) : void
getAST ( ) : ProgrammingLanguageNr1.AST
lookAhead ( int i ) : Token
lookAheadType ( int i ) : Token.TokenType
match ( Token expectedTokenType ) : Token
process ( ) : void

Приватные методы

Метод Описание
FunctionArgumentList ( ) : ProgrammingLanguageNr1.AST
allowLineBreak ( ) : void
arrayCreation ( ) : ProgrammingLanguageNr1.AST
arrayLookup ( ) : ProgrammingLanguageNr1.AST
assignment ( ) : ProgrammingLanguageNr1.AST
assignmentAndOperator ( ) : ProgrammingLanguageNr1.AST
assignmentToArray ( ) : ProgrammingLanguageNr1.AST
booleanExpression ( ) : ProgrammingLanguageNr1.AST
breakStatement ( ) : ProgrammingLanguageNr1.AST
checkLeftHandSide ( ProgrammingLanguageNr1.AST lhs, Token operatorToken ) : void
checkRightHandSide ( ProgrammingLanguageNr1.AST rhs, Token operatorToken ) : void
checkThatItsTheEndOfTheLine ( ) : void
comparisonExpression ( ) : ProgrammingLanguageNr1.AST
declaration ( ) : ProgrammingLanguageNr1.AST_VariableDeclaration
declarationAndAssignment ( ) : ProgrammingLanguageNr1.AST
dotNotationExpression ( ) : ProgrammingLanguageNr1.AST
expression ( ) : ProgrammingLanguageNr1.AST
figureOutStatementType ( ) : ProgrammingLanguageNr1.AST
foreachStuff ( string pLoopVariableName ) : ProgrammingLanguageNr1.AST
fromMinToMaxArrayCreation ( ) : ProgrammingLanguageNr1.AST
functionCall ( ) : ProgrammingLanguageNr1.AST
functionDeclaration ( ) : ProgrammingLanguageNr1.AST
ifThenElse ( ) : ProgrammingLanguageNr1.AST
loop ( ) : ProgrammingLanguageNr1.AST
multiplicationExpression ( ) : ProgrammingLanguageNr1.AST
negativeExpression ( ) : ProgrammingLanguageNr1.AST
notStatement ( ) : ProgrammingLanguageNr1.AST
operand ( ) : ProgrammingLanguageNr1.AST
parameter ( ) : ProgrammingLanguageNr1.AST
parameterList ( ) : ProgrammingLanguageNr1.AST
parenthesisExpression ( ) : ProgrammingLanguageNr1.AST
plusOrMinusExpression ( ) : ProgrammingLanguageNr1.AST
plusplusOrMinusminus ( ) : ProgrammingLanguageNr1.AST
program ( ) : void
quotedString ( ) : ProgrammingLanguageNr1.AST
returnFromFunction ( ) : ProgrammingLanguageNr1.AST
skipStuffUntilNextLine ( ) : void
statement ( ) : ProgrammingLanguageNr1.AST
statementList ( bool isInMainScope ) : ProgrammingLanguageNr1.AST

Описание методов

Parser() публичный Метод

public Parser ( List tokens, ProgrammingLanguageNr1.ErrorHandler errorHandler ) : System
tokens List
errorHandler ProgrammingLanguageNr1.ErrorHandler
Результат System

backtrackToToken() публичный Метод

public backtrackToToken ( Token pToken ) : void
pToken Token
Результат void

consumeCurrentToken() публичный Метод

public consumeCurrentToken ( ) : void
Результат void

getAST() публичный Метод

public getAST ( ) : ProgrammingLanguageNr1.AST
Результат ProgrammingLanguageNr1.AST

lookAhead() публичный Метод

public lookAhead ( int i ) : Token
i int
Результат Token

lookAheadType() публичный Метод

public lookAheadType ( int i ) : Token.TokenType
i int
Результат Token.TokenType

match() публичный Метод

public match ( Token expectedTokenType ) : Token
expectedTokenType Token
Результат Token

process() публичный Метод

public process ( ) : void
Результат void