edu.ksu.cis.projects.bogor.parser
Class BogorParser
java.lang.Object
edu.ksu.cis.projects.bogor.parser.BogorParser
- All Implemented Interfaces:
- BogorParserConstants
public class BogorParser
- extends Object
- implements BogorParserConstants
- Version:
- CVS $Revision: 1.53 $ $Date: 2005/06/09 18:48:14 $
- Author:
- Robby, Matt Hoosier
Fields inherited from interface edu.ksu.cis.projects.bogor.parser.BogorParserConstants |
ACTIONDEF, ACTIVE, AND, ASSERT, ASSIGN, ASSUME, AT, ATOMIC, BANG, BIND, BIT_AND, BIT_OR, BIT_XOR, BOGORID, BOOLEAN, CATCH, CHARACTER_LITERAL, CHOOSE, COLON, COMMA, CONST, DECIMAL_LITERAL, DEFAULT, DIGIT, DO, DOT, DOUBLE, ELSE, ELSEIF, END, ENUM, EOF, EQ, EXCEPT, EXIT, EXPDEF, EXPONENT, EXTENDS, EXTENSION, FALSE, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, FUN, FUNCTION, GE, GOTO, GT, HASLOCK, HEX_LITERAL, HOOK, IF, IN, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INSTANCEOF, INT, INTEGER_LITERAL, INVISIBLE, INVOKE, JAVAID, KINDOF, LAZY, LBRACE, LBRACKET, LDOTS, LE, LET, LETTER, LIVE, LOC, LOCK, LOCKAVAILABLE, LONG, LONG_LITERAL, LPAREN, LT, MAIN, MAP, MINUS, MULTI_LINE_COMMENT, NE, NEW, NOTIFY, NOTIFYALL, NULL, OCTAL_LITERAL, ON, OR, PLUS, PRINTLN, PTYPEDEF, RBRACE, RBRACKET, RECORD, REFLECT, REM, RETURN, RETURNS, RPAREN, SEMICOLON, SHL, SHR, SIGN, SINGLE_LINE_COMMENT, SKIPP, SLASH, STAR, START, STRING, STRINGKW, SYSTEM, THREAD, THREADTERMINATED, THROW, THROWABLE, TID, tokenImage, TOP, TRANSIENT, TRUE, TRY, TYPEALIAS, TYPEDEF, TYPEVARID, UNIT, UNLOCK, UNWAIT, USHR, VIRTUAL, VISIBLE, VOID, WAIT, WASNOTIFIED, WHEN, WHERE, WHILE, WRAP |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public BogorParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
BogorParser
public BogorParser(InputStream stream)
BogorParser
public BogorParser(Reader stream)
BogorParser
public BogorParser(BogorParserTokenManager tm)
setInput
public BogorParser setInput(Reader r)
setInput
public BogorParser setInput(InputStream is)
getErrors
public ArrayList<String> getErrors()
System
public final System System()
throws ParseException
- Throws:
ParseException
Definition
public final Definition Definition()
throws ParseException
- Throws:
ParseException
Extension
public final Extension Extension()
throws ParseException
- Throws:
ParseException
TypeArgs
public final boolean TypeArgs(ArrayList<TypedId> args,
BitSet lazyModifiers)
throws ParseException
- Throws:
ParseException
TypeParam
public final void TypeParam(ArrayList<String> typeVarIds)
throws ParseException
- Throws:
ParseException
FunTypePoly
public final ASTFunType FunTypePoly()
throws ParseException
- Throws:
ParseException
TypePoly
public final ASTType TypePoly()
throws ParseException
- Throws:
ParseException
NonArrayTypePoly
public final ASTType NonArrayTypePoly()
throws ParseException
- Throws:
ParseException
NonArrayParamTypePoly
public final ASTType NonArrayParamTypePoly()
throws ParseException
- Throws:
ParseException
Constant
public final Constant Constant()
throws ParseException
- Throws:
ParseException
TypedId
public final TypedId TypedId()
throws ParseException
- Throws:
ParseException
Global
public final Global Global()
throws ParseException
- Throws:
ParseException
Value
public final Exp Value()
throws ParseException
- Throws:
ParseException
Type
public final ASTType Type()
throws ParseException
- Throws:
ParseException
NonArrayParamType
public final ASTType NonArrayParamType()
throws ParseException
- Throws:
ParseException
NonArrayType
public final ASTType NonArrayType()
throws ParseException
- Throws:
ParseException
BuiltinType
public final ASTType BuiltinType()
throws ParseException
- Throws:
ParseException
ArithmeticBuiltinType
public final ASTType ArithmeticBuiltinType()
throws ParseException
- Throws:
ParseException
Exp
public final Exp Exp()
throws ParseException
- Throws:
ParseException
LHS
public final LValueExp LHS()
throws ParseException
- Throws:
ParseException
IntLiteral
public final IntLiteral IntLiteral()
throws ParseException
- Throws:
ParseException
OptionallySignedIntLiteral
public final IntLiteral OptionallySignedIntLiteral()
throws ParseException
- Throws:
ParseException
OptionallySignedLongLiteral
public final LongLiteral OptionallySignedLongLiteral()
throws ParseException
- Throws:
ParseException
LongLiteral
public final LongLiteral LongLiteral()
throws ParseException
- Throws:
ParseException
FloatingPointLiteral
public final Literal FloatingPointLiteral()
throws ParseException
- Throws:
ParseException
Literal
public final Literal Literal()
throws ParseException
- Throws:
ParseException
LockTest
public final Exp LockTest()
throws ParseException
- Throws:
ParseException
LockTestOp
public final LockTestOp LockTestOp()
throws ParseException
- Throws:
ParseException
ThreadTest
public final Exp ThreadTest()
throws ParseException
- Throws:
ParseException
Fun
public final Fun Fun()
throws ParseException
- Throws:
ParseException
FSM
public final FSM FSM()
throws ParseException
- Throws:
ParseException
Local
public final Local Local()
throws ParseException
- Throws:
ParseException
Param
public final Param Param()
throws ParseException
- Throws:
ParseException
Location
public final Location Location()
throws ParseException
- Throws:
ParseException
LiveSet
public final LiveSet LiveSet()
throws ParseException
- Throws:
ParseException
Catch
public final Catch Catch()
throws ParseException
- Throws:
ParseException
Transformation
public final Transformation Transformation()
throws ParseException
- Throws:
ParseException
NextState
public final NextState NextState()
throws ParseException
- Throws:
ParseException
Action
public final Action Action()
throws ParseException
- Throws:
ParseException
StartThread
public final StartThreadExp StartThread()
throws ParseException
- Throws:
ParseException
Invoke
public final InvokeExp Invoke()
throws ParseException
- Throws:
ParseException
LockOp
public final LockOp LockOp()
throws ParseException
- Throws:
ParseException
PrintArg
public final PrintArg PrintArg()
throws ParseException
- Throws:
ParseException
Id
public final Token Id()
throws ParseException
- Throws:
ParseException
ConditionalExp
public final Exp ConditionalExp()
throws ParseException
- Throws:
ParseException
Apply
public final ApplyExp Apply()
throws ParseException
- Throws:
ParseException
Let
public final LetExp Let()
throws ParseException
- Throws:
ParseException
ConditionalImplyExp
public final Exp ConditionalImplyExp()
throws ParseException
- Throws:
ParseException
ConditionalOrExp
public final Exp ConditionalOrExp()
throws ParseException
- Throws:
ParseException
ConditionalAndExp
public final Exp ConditionalAndExp()
throws ParseException
- Throws:
ParseException
InclusiveOrExp
public final Exp InclusiveOrExp()
throws ParseException
- Throws:
ParseException
ExclusiveOrExp
public final Exp ExclusiveOrExp()
throws ParseException
- Throws:
ParseException
AndExp
public final Exp AndExp()
throws ParseException
- Throws:
ParseException
EqualityExp
public final Exp EqualityExp()
throws ParseException
- Throws:
ParseException
InstanceOfExp
public final Exp InstanceOfExp()
throws ParseException
- Throws:
ParseException
RelationalExp
public final Exp RelationalExp()
throws ParseException
- Throws:
ParseException
ShiftExpression
public final Exp ShiftExpression()
throws ParseException
- Throws:
ParseException
AdditiveExp
public final Exp AdditiveExp()
throws ParseException
- Throws:
ParseException
MultiplicativeExp
public final Exp MultiplicativeExp()
throws ParseException
- Throws:
ParseException
UnaryExp
public final Exp UnaryExp()
throws ParseException
- Throws:
ParseException
UnaryExpNotPlusMinus
public final Exp UnaryExpNotPlusMinus()
throws ParseException
- Throws:
ParseException
CastLookahead
public final void CastLookahead()
throws ParseException
- Throws:
ParseException
CoercedType
public final ASTType CoercedType()
throws ParseException
- Throws:
ParseException
CastExp
public final Exp CastExp()
throws ParseException
- Throws:
ParseException
PrimaryPrefix
public final Exp PrimaryPrefix()
throws ParseException
- Throws:
ParseException
PrimarySuffix
public final Object PrimarySuffix()
throws ParseException
- Throws:
ParseException
StatementList
public final Statement StatementList()
throws ParseException
- Throws:
ParseException
Statement
public final Statement Statement()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(BogorParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()