All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aioli.ppml.Compile

java.lang.Object
   |
   +----antlr.Parser
           |
           +----antlr.LLkParser
                   |
                   +----aioli.ppml.Compile

public class Compile
extends LLkParser
implements ppmlTokenTypes
This class has been automatically generated by the antlr Tool. It compiles a metal file and generates two files BBstd.java and PPstd.java that are in the packacke lang.language_name. To run the compiler just call
java aioli.ppml.Compile file.ppml
Here is an example of a ppml specification for the toy language:
prettyprinter std of toy is
x!0 -> "...";
tlist[*x,**y,*z] -> [ *z "a" ("b" **y "c") *x];
app(*x, *y) ->
[
"(" [ in class = left : [ *x] in class = right : [ *y]]
")"];
abs(*x, *y) -> [ "(" [ [ "lambda" [ *x "."]]  *y]  ")"];
var *x -> [ identitypp(*x)];
null1() -> [ "()"];
null2() -> [ "0"];
end prettyprinter


Variable Index

 o _tokenNames
 o _tokenSet_0
 o _tokenSet_1
 o _tokenSet_10
 o _tokenSet_11
 o _tokenSet_12
 o _tokenSet_13
 o _tokenSet_14
 o _tokenSet_15
 o _tokenSet_16
 o _tokenSet_17
 o _tokenSet_18
 o _tokenSet_19
 o _tokenSet_2
 o _tokenSet_20
 o _tokenSet_21
 o _tokenSet_22
 o _tokenSet_3
 o _tokenSet_4
 o _tokenSet_5
 o _tokenSet_6
 o _tokenSet_7
 o _tokenSet_8
 o _tokenSet_9

Constructor Index

 o Compile(TokenBuffer)
 o Compile(Tokenizer)

Method Index

 o addOperator(String)
 o args()
 o box()
 o bsons()
 o bsonsv()
 o bvar()
 o bvar1()
 o combinator()
 o cpattern(Formalism)
 o ext(Rules)
 o farg()
 o fargs()
 o fname()
 o fun(boolean)
 o getAnnot(String)
 o getContext(String)
 o initAVector()
 o initCVector()
 o initOperator()
 o main(String[])
 o nodename()
 o pattern(Formalism)
 o program()
 o psons(Formalism)
 o pvar()
 o rule(Formalism)
 o sint()

Variables

 o _tokenNames
 public static final String _tokenNames[]
 o _tokenSet_0
 public static final BitSet _tokenSet_0
 o _tokenSet_1
 public static final BitSet _tokenSet_1
 o _tokenSet_2
 public static final BitSet _tokenSet_2
 o _tokenSet_3
 public static final BitSet _tokenSet_3
 o _tokenSet_4
 public static final BitSet _tokenSet_4
 o _tokenSet_5
 public static final BitSet _tokenSet_5
 o _tokenSet_6
 public static final BitSet _tokenSet_6
 o _tokenSet_7
 public static final BitSet _tokenSet_7
 o _tokenSet_8
 public static final BitSet _tokenSet_8
 o _tokenSet_9
 public static final BitSet _tokenSet_9
 o _tokenSet_10
 public static final BitSet _tokenSet_10
 o _tokenSet_11
 public static final BitSet _tokenSet_11
 o _tokenSet_12
 public static final BitSet _tokenSet_12
 o _tokenSet_13
 public static final BitSet _tokenSet_13
 o _tokenSet_14
 public static final BitSet _tokenSet_14
 o _tokenSet_15
 public static final BitSet _tokenSet_15
 o _tokenSet_16
 public static final BitSet _tokenSet_16
 o _tokenSet_17
 public static final BitSet _tokenSet_17
 o _tokenSet_18
 public static final BitSet _tokenSet_18
 o _tokenSet_19
 public static final BitSet _tokenSet_19
 o _tokenSet_20
 public static final BitSet _tokenSet_20
 o _tokenSet_21
 public static final BitSet _tokenSet_21
 o _tokenSet_22
 public static final BitSet _tokenSet_22

Constructors

 o Compile
 public Compile(TokenBuffer tokenBuf)
 o Compile
 public Compile(Tokenizer lexer)

Methods

 o initCVector
 public static void initCVector()
 o initAVector
 public static void initAVector()
 o getContext
 public int getContext(String str)
 o getAnnot
 public int getAnnot(String str)
 o initOperator
 public static void initOperator()
 o addOperator
 public void addOperator(String str)
 o main
 public static void main(String args[]) throws Exception
 o program
 public final Rules program() throws ParserException, IOException
 o ext
 public final void ext(Rules rules) throws ParserException, IOException
 o rule
 public final Rule rule(Formalism fm) throws ParserException, IOException
 o cpattern
 public final CPattern cpattern(Formalism fm) throws ParserException, IOException
 o box
 public final Box box() throws ParserException, IOException
 o pattern
 public final Pattern pattern(Formalism fm) throws ParserException, IOException
 o fun
 public final Fun fun(boolean b) throws ParserException, IOException
 o pvar
 public final Pattern pvar() throws ParserException, IOException
 o nodename
 public final String nodename() throws ParserException, IOException
 o psons
 public final PSons psons(Formalism fm) throws ParserException, IOException
 o fname
 public final String fname() throws ParserException, IOException
 o fargs
 public final Fargs fargs() throws ParserException, IOException
 o farg
 public final Fargs farg() throws ParserException, IOException
 o sint
 public final int sint() throws ParserException, IOException
 o bvar
 public final Box bvar() throws ParserException, IOException
 o bvar1
 public final Box bvar1() throws ParserException, IOException
 o bsons
 public final BSons bsons() throws ParserException, IOException
 o combinator
 public final Combinator combinator() throws ParserException, IOException
 o bsonsv
 public final BSons bsonsv() throws ParserException, IOException
 o args
 public final Args args() throws ParserException, IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index