|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Token | |
---|---|
tip | Provides the main classes for the TIP compiler, including the main entry class Main. |
tip.analysis | Provides the analysis utility classes for the TIP ASTs. |
tip.display | Provides classes for display ASTs and CFGs of TIP programs. |
tip.lexer | Provides the lexer for the TIP grammar. |
tip.node | Provides node classes for representing the TIP ASTs. |
tip.parser | Provides the parser for the TIP grammar. |
Uses of Token in tip |
---|
Methods in tip with parameters of type Token | |
---|---|
static void |
Errors.error(Token pos,
String message)
Report an error at a specific position in a source file. |
static void |
Errors.fatalError(Token pos,
String message)
Report an error at a specific position in a source file and stop the compilation. |
Uses of Token in tip.analysis |
---|
Methods in tip.analysis with parameters of type Token | |
---|---|
void |
TreeDisplay.defaultToken(Token node)
|
A |
AnswerAdapter.defaultToken(Token token)
Returns the default answer for a Token . |
void |
AnalysisAdapter.defaultToken(Token token)
Base case for all tokens. |
A |
QuestionAnswerAdapter.defaultToken(Token token,
Q question)
Returns the default answer for a Token . |
void |
QuestionAdapter.defaultToken(Token token,
Q question)
Default action for a question to a Token . |
Uses of Token in tip.display |
---|
Methods in tip.display with parameters of type Token | |
---|---|
void |
ASTDisplay.defaultToken(Token token)
Terminals - our parent is always on the top of the stack, so we add ourselves to it |
Uses of Token in tip.lexer |
---|
Methods in tip.lexer that return Token | |
---|---|
Token |
ParserToken.getToken(int parserState)
|
Uses of Token in tip.node |
---|
Subclasses of Token in tip.node | |
---|---|
class |
EOF
The EOF token represents the end-of-file marker from an input-file. |
class |
TAnd
TAnd represents a '&' token from the input file. |
class |
TAssign
TAssign represents a '=' token from the input file. |
class |
TComma
TComma represents a ',' token from the input file. |
class |
TCommentBlock
TCommentBlock represents a comment block token from the input file. |
class |
TCommentSingle
TCommentSingle represents a comment single token from the input file. |
class |
TDiv
TDiv represents a '/' token from the input file. |
class |
TElse
TElse represents a 'else' token from the input file. |
class |
TEq
TEq represents a '==' token from the input file. |
class |
TGt
TGt represents a '>' token from the input file. |
class |
TIdentifier
TIdentifier represents a identifier token from the input file. |
class |
TIf
TIf represents a 'if' token from the input file. |
class |
TInput
TInput represents a 'input' token from the input file. |
class |
TIntegerConst
TIntegerConst represents a integer const token from the input file. |
class |
TLBrace
TLBrace represents a '{' token from the input file. |
class |
TLPar
TLPar represents a '(' token from the input file. |
class |
TMalloc
TMalloc represents a 'malloc' token from the input file. |
class |
TMinus
TMinus represents a '-' token from the input file. |
class |
TNull
TNull represents a 'null' token from the input file. |
class |
TOutput
TOutput represents a 'output' token from the input file. |
class |
TPlus
TPlus represents a '+' token from the input file. |
class |
TRBrace
TRBrace represents a '}' token from the input file. |
class |
TReturn
TReturn represents a 'return' token from the input file. |
class |
TRPar
TRPar represents a ')' token from the input file. |
class |
TSemicolon
TSemicolon represents a ';' token from the input file. |
class |
TStar
TStar represents a '*' token from the input file. |
class |
TVar
TVar represents a 'var' token from the input file. |
class |
TWhile
TWhile represents a 'while' token from the input file. |
class |
TWhiteSpace
TWhiteSpace represents a white space token from the input file. |
Methods in tip.node that return Token | |
---|---|
abstract Token |
Token.clone()
Returns a deep clone of this Token node. |
abstract Token |
Token.clone(Map<Node,Node> oldToNewMap)
Creates a deep clone of this Token node while putting all
old node-new node relations in the map oldToNewMap . |
Token |
Token.getToken()
Returns the original token for this token. |
abstract Token |
PStm.getToken()
Returns the Token node which is the token child of this PStm node. |
abstract Token |
PBinop.getToken()
Returns the Token node which is the token child of this PBinop node. |
Constructors in tip.node with parameters of type Token | |
---|---|
EOF(Token token)
Creates a new EOF token that is an alias of the given token. |
|
TAnd(Token token)
Creates a new TAnd token that is an alias of the given token. |
|
TAssign(Token token)
Creates a new TAssign token that is an alias of the given token. |
|
TComma(Token token)
Creates a new TComma token that is an alias of the given token. |
|
TCommentBlock(String text,
Token token)
Creates a new TCommentBlock token with text as text which is
an alias of the given token. |
|
TCommentSingle(String text,
Token token)
Creates a new TCommentSingle token with text as text which is
an alias of the given token. |
|
TDiv(Token token)
Creates a new TDiv token that is an alias of the given token. |
|
TElse(Token token)
Creates a new TElse token that is an alias of the given token. |
|
TEq(Token token)
Creates a new TEq token that is an alias of the given token. |
|
TGt(Token token)
Creates a new TGt token that is an alias of the given token. |
|
TIdentifier(String text,
Token token)
Creates a new TIdentifier token with text as text which is
an alias of the given token. |
|
TIdentifier(String text,
Token token,
PDecl _decl_,
Type _type_)
Creates a new TIdentifier token with the given nodes as children. |
|
TIf(Token token)
Creates a new TIf token that is an alias of the given token. |
|
TInput(Token token)
Creates a new TInput token that is an alias of the given token. |
|
TIntegerConst(String text,
Token token)
Creates a new TIntegerConst token with text as text which is
an alias of the given token. |
|
TLBrace(Token token)
Creates a new TLBrace token that is an alias of the given token. |
|
TLPar(Token token)
Creates a new TLPar token that is an alias of the given token. |
|
TMalloc(Token token)
Creates a new TMalloc token that is an alias of the given token. |
|
TMinus(Token token)
Creates a new TMinus token that is an alias of the given token. |
|
TNull(Token token)
Creates a new TNull token that is an alias of the given token. |
|
TOutput(Token token)
Creates a new TOutput token that is an alias of the given token. |
|
TPlus(Token token)
Creates a new TPlus token that is an alias of the given token. |
|
TRBrace(Token token)
Creates a new TRBrace token that is an alias of the given token. |
|
TReturn(Token token)
Creates a new TReturn token that is an alias of the given token. |
|
TRPar(Token token)
Creates a new TRPar token that is an alias of the given token. |
|
TSemicolon(Token token)
Creates a new TSemicolon token that is an alias of the given token. |
|
TStar(Token token)
Creates a new TStar token that is an alias of the given token. |
|
TVar(Token token)
Creates a new TVar token that is an alias of the given token. |
|
TWhile(Token token)
Creates a new TWhile token that is an alias of the given token. |
|
TWhiteSpace(String text,
Token token)
Creates a new TWhiteSpace token with text as text which is
an alias of the given token. |
Uses of Token in tip.parser |
---|
Methods in tip.parser that return Token | |
---|---|
Token |
ParserException.getToken()
|
Constructors in tip.parser with parameters of type Token | |
---|---|
ParserException(Token token,
String message)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |