All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----antlr.Parser | +----antlr.LLkParser | +----aioli.metal.Compile
java aioli.metal.Compile file.metalA metal specification starts with formalism of language_name is and ends with end . The body is composed of a list of declarations separated by semi colons. The possible declarations of operator are for star and plus list operators, fixed operatorm nullary operator, string atomic operator, integer atomic operator. They correspond to the different declaration:
env_list -> ENV * ...; exp_list -> EXP + ...; bin -> EXP EXP ; null -> ; var -> implemented as STRING; int -> implemented as INTEGER;Phyla are presented as capital letters. A declaration enumarates the elements that a phylum includes (operators and phyla)
BEXP := int var; EXP := bin null BEXP;Finally here is the complete definition of the toy language
formalism of toy is TOP ::= null1 null2 app var abs tlist ; null1 -> ; null2 -> ; app -> TOP TOP ; abs -> TOP TOP ; var -> implemented as STRING ; tlist -> TOP * ... ; end
public static final String _tokenNames[]
public static final BitSet _tokenSet_0
public static final BitSet _tokenSet_1
public static final BitSet _tokenSet_2
public static final BitSet _tokenSet_3
public static final BitSet _tokenSet_4
public static final BitSet _tokenSet_5
public static final BitSet _tokenSet_6
public static final BitSet _tokenSet_7
public Compile(TokenBuffer tokenBuf)
public Compile(Tokenizer lexer)
public static void main(String args[]) throws Exception
public final Formalism program() throws ParserException, IOException
public final String id() throws ParserException, IOException
public final void rule(Formalism fm) throws ParserException, IOException
public final String op() throws ParserException, IOException
public final void sons(String name, Formalism fm) throws ParserException, IOException
public final String phylum() throws ParserException, IOException
public final void phy_or_op(String name, Formalism fm) throws ParserException, IOException
public final void atomic(String name, Formalism fm) throws ParserException, IOException
All Packages Class Hierarchy This Package Previous Next Index