Package jtb.cparser
Class CParser
- Object
-
- CParser
-
- All Implemented Interfaces:
CParserConstants
public class CParser extends Object implements CParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description static Token
jj_nt
static boolean
lookingAhead
static Token
token
static CParserTokenManager
token_source
-
Fields inherited from interface CParserConstants
AUTO, BREAK, CASE, CHAR, CHARACTER_LITERAL, CONST, CONTINUE, DECIMAL_LITERAL, DEFAULT, DFLT, DIGIT, DO, DOUBLE, ELSE, ENUM, EOF, EXPONENT, EXTERN, FLOAT, FLOATING_POINT_LITERAL, FOR, GOTO, HEX_LITERAL, IDENTIFIER, IF, INT, INTEGER_LITERAL, LETTER, LONG, OCTAL_LITERAL, REGISTER, RETURN, SHORT, SIGNED, SIZEOF, STATIC, STRING_LITERAL, STRUCT, SWITCH, tokenImage, TYPEDEF, UNION, UNSIGNED, VOID, VOLATILE, WHILE
-
-
Constructor Summary
Constructors Constructor Description CParser(InputStream stream)
CParser(Reader stream)
CParser(CParserTokenManager tm)
-
Method Summary
-
-
-
Field Detail
-
token_source
public static CParserTokenManager token_source
-
lookingAhead
public static boolean lookingAhead
-
-
Constructor Detail
-
CParser
public CParser(InputStream stream)
-
CParser
public CParser(CParserTokenManager tm)
-
-
Method Detail
-
TranslationUnit
public static final TranslationUnit TranslationUnit() throws ParseException
- Throws:
ParseException
-
ExternalDeclaration
public static final ExternalDeclaration ExternalDeclaration() throws ParseException
- Throws:
ParseException
-
FunctionDefinition
public static final FunctionDefinition FunctionDefinition() throws ParseException
- Throws:
ParseException
-
Declaration
public static final Declaration Declaration() throws ParseException
- Throws:
ParseException
-
DeclarationList
public static final DeclarationList DeclarationList() throws ParseException
- Throws:
ParseException
-
DeclarationSpecifiers
public static final DeclarationSpecifiers DeclarationSpecifiers() throws ParseException
- Throws:
ParseException
-
StorageClassSpecifier
public static final StorageClassSpecifier StorageClassSpecifier() throws ParseException
- Throws:
ParseException
-
TypeSpecifier
public static final TypeSpecifier TypeSpecifier() throws ParseException
- Throws:
ParseException
-
TypeQualifier
public static final TypeQualifier TypeQualifier() throws ParseException
- Throws:
ParseException
-
StructOrUnionSpecifier
public static final StructOrUnionSpecifier StructOrUnionSpecifier() throws ParseException
- Throws:
ParseException
-
StructOrUnion
public static final StructOrUnion StructOrUnion() throws ParseException
- Throws:
ParseException
-
StructDeclarationList
public static final StructDeclarationList StructDeclarationList() throws ParseException
- Throws:
ParseException
-
InitDeclaratorList
public static final InitDeclaratorList InitDeclaratorList() throws ParseException
- Throws:
ParseException
-
InitDeclarator
public static final InitDeclarator InitDeclarator() throws ParseException
- Throws:
ParseException
-
StructDeclaration
public static final StructDeclaration StructDeclaration() throws ParseException
- Throws:
ParseException
-
SpecifierQualifierList
public static final SpecifierQualifierList SpecifierQualifierList() throws ParseException
- Throws:
ParseException
-
StructDeclaratorList
public static final StructDeclaratorList StructDeclaratorList() throws ParseException
- Throws:
ParseException
-
StructDeclarator
public static final StructDeclarator StructDeclarator() throws ParseException
- Throws:
ParseException
-
EnumSpecifier
public static final EnumSpecifier EnumSpecifier() throws ParseException
- Throws:
ParseException
-
EnumeratorList
public static final EnumeratorList EnumeratorList() throws ParseException
- Throws:
ParseException
-
Enumerator
public static final Enumerator Enumerator() throws ParseException
- Throws:
ParseException
-
Declarator
public static final Declarator Declarator() throws ParseException
- Throws:
ParseException
-
DirectDeclarator
public static final DirectDeclarator DirectDeclarator() throws ParseException
- Throws:
ParseException
-
Pointer
public static final Pointer Pointer() throws ParseException
- Throws:
ParseException
-
TypeQualifierList
public static final TypeQualifierList TypeQualifierList() throws ParseException
- Throws:
ParseException
-
ParameterTypeList
public static final ParameterTypeList ParameterTypeList() throws ParseException
- Throws:
ParseException
-
ParameterList
public static final ParameterList ParameterList() throws ParseException
- Throws:
ParseException
-
ParameterDeclaration
public static final ParameterDeclaration ParameterDeclaration() throws ParseException
- Throws:
ParseException
-
IdentifierList
public static final IdentifierList IdentifierList() throws ParseException
- Throws:
ParseException
-
Initializer
public static final Initializer Initializer() throws ParseException
- Throws:
ParseException
-
InitializerList
public static final InitializerList InitializerList() throws ParseException
- Throws:
ParseException
-
TypeName
public static final TypeName TypeName() throws ParseException
- Throws:
ParseException
-
AbstractDeclarator
public static final AbstractDeclarator AbstractDeclarator() throws ParseException
- Throws:
ParseException
-
DirectAbstractDeclarator
public static final DirectAbstractDeclarator DirectAbstractDeclarator() throws ParseException
- Throws:
ParseException
-
TypedefName
public static final TypedefName TypedefName() throws ParseException
- Throws:
ParseException
-
Statement
public static final Statement Statement() throws ParseException
- Throws:
ParseException
-
LabeledStatement
public static final LabeledStatement LabeledStatement() throws ParseException
- Throws:
ParseException
-
ExpressionStatement
public static final ExpressionStatement ExpressionStatement() throws ParseException
- Throws:
ParseException
-
CompoundStatement
public static final CompoundStatement CompoundStatement() throws ParseException
- Throws:
ParseException
-
StatementList
public static final StatementList StatementList() throws ParseException
- Throws:
ParseException
-
SelectionStatement
public static final SelectionStatement SelectionStatement() throws ParseException
- Throws:
ParseException
-
IterationStatement
public static final IterationStatement IterationStatement() throws ParseException
- Throws:
ParseException
-
JumpStatement
public static final JumpStatement JumpStatement() throws ParseException
- Throws:
ParseException
-
Expression
public static final Expression Expression() throws ParseException
- Throws:
ParseException
-
AssignmentExpression
public static final AssignmentExpression AssignmentExpression() throws ParseException
- Throws:
ParseException
-
AssignmentOperator
public static final AssignmentOperator AssignmentOperator() throws ParseException
- Throws:
ParseException
-
ConditionalExpression
public static final ConditionalExpression ConditionalExpression() throws ParseException
- Throws:
ParseException
-
ConstantExpression
public static final ConstantExpression ConstantExpression() throws ParseException
- Throws:
ParseException
-
LogicalORExpression
public static final LogicalORExpression LogicalORExpression() throws ParseException
- Throws:
ParseException
-
LogicalANDExpression
public static final LogicalANDExpression LogicalANDExpression() throws ParseException
- Throws:
ParseException
-
InclusiveORExpression
public static final InclusiveORExpression InclusiveORExpression() throws ParseException
- Throws:
ParseException
-
ExclusiveORExpression
public static final ExclusiveORExpression ExclusiveORExpression() throws ParseException
- Throws:
ParseException
-
ANDExpression
public static final ANDExpression ANDExpression() throws ParseException
- Throws:
ParseException
-
EqualityExpression
public static final EqualityExpression EqualityExpression() throws ParseException
- Throws:
ParseException
-
RelationalExpression
public static final RelationalExpression RelationalExpression() throws ParseException
- Throws:
ParseException
-
ShiftExpression
public static final ShiftExpression ShiftExpression() throws ParseException
- Throws:
ParseException
-
AdditiveExpression
public static final AdditiveExpression AdditiveExpression() throws ParseException
- Throws:
ParseException
-
MultiplicativeExpression
public static final MultiplicativeExpression MultiplicativeExpression() throws ParseException
- Throws:
ParseException
-
CastExpression
public static final CastExpression CastExpression() throws ParseException
- Throws:
ParseException
-
UnaryExpression
public static final UnaryExpression UnaryExpression() throws ParseException
- Throws:
ParseException
-
UnaryOperator
public static final UnaryOperator UnaryOperator() throws ParseException
- Throws:
ParseException
-
PostfixExpression
public static final PostfixExpression PostfixExpression() throws ParseException
- Throws:
ParseException
-
PrimaryExpression
public static final PrimaryExpression PrimaryExpression() throws ParseException
- Throws:
ParseException
-
ArgumentExpressionList
public static final ArgumentExpressionList ArgumentExpressionList() throws ParseException
- Throws:
ParseException
-
Constant
public static final Constant Constant() throws ParseException
- Throws:
ParseException
-
ReInit
public static void ReInit(InputStream stream)
-
ReInit
public void ReInit(CParserTokenManager tm)
-
getNextToken
public static final Token getNextToken()
-
generateParseException
public static final ParseException generateParseException()
-
enable_tracing
public static final void enable_tracing()
-
disable_tracing
public static final void disable_tracing()
-
-