|
antlraux package v0.2.1 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
LexInfoAST.addChildLeft(AST)
,
but conservating newFirstChild's sibling list.
CommandSpec
and a list of
parameters. LexInfo
. HeritableType
, and hisType.isA(myType)
myType.equals(hisType) || hisType.equals(myType)
CommonType
that
implements ModifiedType
, so it implements a very basic
Type
with modifiers.
Logger.tabLevel
by one unit
Enumeration
in an
Iterator
. ExpressionAST.initialize(AST)
method
Scope.father
Logger.flf
Logger.logCounter
Logger.minLogLevel
Logger.name
Scope.name
Logger.newLineString
ClassType.scope
ClassType.superType
Logger.tabLevel
Logger.tabString
Scope.tag
Logger.tabLevel
in one unit
LexInfoAST
.
Declaration
Iterator
in an
Enumeration
.CommonAST
implements
LexInfo
, so it can return the
filename, line and column of its information. LexInfoAST.initialize(antlr.collections.AST)
CommonAST.initialize(int,String)
LexInfoAST.initialize(antlr.Token)
RecognitionException
that
implements LexInfo
CommonToken
implements
LexInfo
, really allowing the use of
a filename (which is ommited in CommonToken
)
To make your lexer use this class of tokens, you'll have to use
the method setTokenObjectClass:
import antlraux.util.LexInfoToken;
...
MethodType
inferface.Logger.newLineString
once on the
Logger's outputStream
LexInfoAST.replaceChild(AST,AST)
,
but conservating newAST's sibling list (current tree's
children are added after that list).
Logger.logCounter
=0
Scope.tag
and Scope.name
Scope.tag
, Scope.name
and
Scope.father
ScopeAST.initialize(AST)
, so it
copies next sibling and first child.
Scope
,
like a class type or a method type.Scope.searchAllLocally(int)
with tag as param and,
if nothing found, it continues with the father, the father of
the father, etc.
Scope.searchAllLocally(int, String)
with tag as param and,
if nothing found, it continues with the scope's father, the father of
the father, etc.
Scope.searchAllLocally(String)
with "name" as param and,
if nothing found, it continues with the father, the father of
the father, etc.
Declaration
tagged like "tag"
Declaration
tagged like "tag"
and named like "name"
Declaration
named "name"
Scope.searchFirstLocally(int)
with "tag" as param and,
if nothing found, it continues with the father, the father of
the father, etc.
Scope.searchFirstLocally(int,String)
with
"tag" and "name" as params and, if nothing found,
it continues with the scope's father, the father of
the father, etc.
Scope.searchFirstLocally(String)
with "name" as param and,
if nothing found, it continues with the father, the father of
the father, etc.
Declaration
with a tag==tag
Declaration
with a tag==tag AND name==name
Declaration
named "name"
Scope.father
Logger.flf
Logger.minLogLevel
Scope.name
Declaration.name
Logger.newLineString
Logger.os
ClassType.scope
ClassType.superType
Logger.tabLevel
.
Logger.tabString
Scope.tag
Declaration.type
LexInfoAST.toString()
TypeAST.toString()
(shows the AST's type)
ScopeAST.toString()
(shows the AST's scope's name)
ExpressionAST.toString()
(shows the AST's type, RValue, LValue and EValue)
Logger.tabString
" Logger.tabLevel
times
on the Logger's outputStream.
Scope
constructor represents
a type of scope.
Type
.
TypeAST.initialize(AST)
so it
copies other's first child and next sibling.
|
antlraux package v0.2.1 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |