Parser class

Constructors

Parser(List<Token> tokens)

Properties

current ↔ int
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokens → List<Token>
final

Methods

advance() → Token
and() → Expr
arrayOrMap() → Expr
assignment() → Expr
block() → List<Stmt>
breakStatement() → Stmt
call() → Expr
check(TokenType type) → bool
classDeclaration() → Stmt
comparison() → Expr
conditional() → Expr
consume(TokenType type, String message) → Token
continueStatement() → Stmt
declaration({bool rethrowError = true}) → Stmt?
equality() → Expr
error(Token token, String message) → ParseError
expression() → Expr
expressionStatement() → Stmt
factor() → Expr
finishCall(Expr callee) → Expr
forStatement() → Stmt
function(String kind) → Functional
ifStatement() → Stmt
indexingExpr(Expr callee) → Expr
isAtEnd() → bool
listenCall(Expr callee) → Expr
mappingExpr(Expr callee, Token name) → Expr
match(List<TokenType> types) → bool
matchforEach() → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
or() → Expr
parse() → List<Stmt>
parseExpression() → Expr?
peek() → Token
peekNext() → Token
previous() → Token
primary() → Expr
printStatement() → Stmt
returnStatement() → Stmt
statement() → Stmt
synchronize() → void
term() → Expr
thenExpr(Expr callee, Token name) → Expr
toString() → String
A string representation of this object.
inherited
unary() → Expr
varDeclaration() → Stmt
wait() → Expr
whileStatement() → Stmt

Operators

operator ==(Object other) → bool
The equality operator.
inherited