|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbsyn.MiniJava
public abstract class MiniJava
Abstract Syntax Trees (ASTs)
Nested Class Summary | |
---|---|
static class |
MiniJava.Dec
|
static class |
MiniJava.Exp
|
static class |
MiniJava.Modifier
|
static class |
MiniJava.Name
|
static class |
MiniJava.Print
A visitor to print the abstract syntax trees. |
static class |
MiniJava.Stm
|
static class |
MiniJava.Type
|
static class |
MiniJava.Unit
|
static class |
MiniJava.Visitor<Domain,Range>
|
Field Summary | |
---|---|
protected Token |
token
Each AST node is associated with a source program location, represented by a line number and a column number. |
Method Summary | ||
---|---|---|
abstract
|
accept(MiniJava.Visitor<D,R> v,
D d)
Each AST node accepts a Visitor |
|
int |
column()
|
|
int |
line()
|
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Token token
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public int line()
public int column()
public abstract <D,R> R accept(MiniJava.Visitor<D,R> v, D d)
D
- the domain of the visitor (i.e., argument type)R
- the range of the visitor (i.e., result type)v
- the visitord
- the visitor's argument
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |