[all packages]
[package ]
[class hierarchy]
[index]
public class PremonJJTParser
(source file: PremonJJTParser.java)
java.lang.Object
|
+----PremonJJTParser
The pure class interface.
public class PremonJJTParser
implements PremonJJTParserTreeConstants, PremonJJTParserConstants
-
The class of parsers for the Premon language.
This parser is created using Sun's JJTree AST generator.

PremonJJTParser(Reader)
-
PremonJJTParser(PremonJJTParserTokenManager)
-
PremonJJTParser(InputStream)
-
PremonJJTParser(String)
-
Create a new parser.

jj_nt
-
jjtree
-
token
-
token_source
-

Cat()
-
Con()
-
ConAtom()
-
Dec()
-
DecAtom()
-
DecNonAtom()
-
Exp()
-
ExpApp()
-
ExpAppInfix()
-
ExpAtom()
-
ExpBlock()
-
ExpComp()
-
ExpLiteral()
-
ExpTuple()
-
Id()
-
Pat()
-
PatTuple()
-
ReInit(Reader)
-
ReInit(PremonJJTParserTokenManager)
-
ReInit(InputStream)
-
Type()
-
TypeTuple()
-
disable_tracing()
-
enable_tracing()
-
generateParseException()
-
getCon()
-
getExp()
-
getNextToken()
-
getToken(int)
-
parseCon()
-
Parse a context.
parseExp()
-
Parse an expression.

PremonJJTParser
public PremonJJTParser(String s);
-
Create a new parser.
- Parameters:
- s - the string to parse.
PremonJJTParser
public PremonJJTParser(InputStream stream);
PremonJJTParser
public PremonJJTParser(Reader stream);
PremonJJTParser
public PremonJJTParser(PremonJJTParserTokenManager tm);

jjtree
protected JJTPremonJJTParserState jjtree;
token_source
public PremonJJTParserTokenManager token_source;
token
public Token token;
jj_nt
public Token jj_nt;

parseExp
public PremonJJTExp parseExp()
throws ParseException;
-
Parse an expression.
- Returns:
- an expression parsed from the input stream.
- Throws:
- ParseException -thrown if there is a parse error.
-
parseCon
public PremonJJTCon parseCon()
throws ParseException;
-
Parse a context.
- Returns:
- an expression parsed from the input stream.
- Throws:
- ParseException -thrown if there is a parse error.
-
getExp
public final PremonJJTExp getExp()
throws ParseException;
getCon
public final PremonJJTCon getCon()
throws ParseException;
Cat
public final void Cat()
throws ParseException;
Type
public final void Type()
throws ParseException;
TypeTuple
public final void TypeTuple()
throws ParseException;
ExpAtom
public final void ExpAtom()
throws ParseException;
ExpTuple
public final void ExpTuple()
throws ParseException;
ExpLiteral
public final void ExpLiteral()
throws ParseException;
ExpApp
public final void ExpApp()
throws ParseException;
ExpAppInfix
public final void ExpAppInfix()
throws ParseException;
ExpComp
public final void ExpComp()
throws ParseException;
Exp
public final void Exp()
throws ParseException;
ExpBlock
public final void ExpBlock()
throws ParseException;
Pat
public final void Pat()
throws ParseException;
PatTuple
public final void PatTuple()
throws ParseException;
Dec
public final void Dec()
throws ParseException;
DecAtom
public final void DecAtom()
throws ParseException;
DecNonAtom
public final void DecNonAtom()
throws ParseException;
Con
public final void Con()
throws ParseException;
ConAtom
public final void ConAtom()
throws ParseException;
Id
public final void Id()
throws ParseException;
ReInit
public void ReInit(InputStream stream);
ReInit
public void ReInit(Reader stream);
ReInit
public void ReInit(PremonJJTParserTokenManager tm);
getNextToken
public final Token getNextToken();
getToken
public final Token getToken(int index);
generateParseException
public final ParseException generateParseException();
enable_tracing
public final void enable_tracing();
disable_tracing
public final void disable_tracing();
[all packages]
[package ]
[class hierarchy]
[index]
PremonJJTParser.html