cppast
Class Parser

java.lang.Object
  extended by cppast.Parser
All Implemented Interfaces:
ParserConstants, ParserTreeConstants

public final class Parser
extends java.lang.Object
implements ParserTreeConstants, ParserConstants


Field Summary
 Token jj_nt
           
protected  cppast.JJTParserState jjtree
           
 boolean lookingAhead
           
 Token token
           
 ParserTokenManager token_source
           
 
Fields inherited from interface cppast.ParserTreeConstants
JJTADDITIVEEXPRESSION, JJTANDEXPRESSION, JJTASSIGNMENTEXPRESSION, JJTBREAKSTATEMENT, JJTCASESTATEMENT, JJTCASTEXPRESSION, JJTCATCHBLOCK, JJTCLASSDECLARATION, JJTCLASSDEFINITION, JJTCONDITIONALEXPRESSION, JJTCONSTANTEXPRESSION, JJTCONSTRUCTORDECLARATION, JJTCONSTRUCTORDEFINITION, JJTCONSTRUCTORINITIALIZER, JJTCONTINUESTATEMENT, JJTDECLARATION, JJTDECLARATIONSTATEMENT, JJTDEFAULTSTATEMENT, JJTDELETEEXPRESSION, JJTDESTRUCTORDECLARATION, JJTDESTRUCTORDEFINITION, JJTELSESTATEMENT, JJTENUMSPECIFIER, JJTEQUALITYEXPRESSION, JJTEXCLUSIVEOREXPRESSION, JJTEXPRESSIONSTATEMENT, JJTFUNCTIONBODY, JJTFUNCTIONCALLEXPRESSION, JJTFUNCTIONDECLARATION, JJTFUNCTIONDEFINITION, JJTFUNCTIONNAME, JJTFUNCTIONPARAMETERS, JJTFUNCTIONPOINTERPOSTFIX, JJTGOTOSTATEMENT, JJTIDEXPRESSION, JJTIFSTATEMENT, JJTINCLUSIVEOREXPRESSION, JJTITERATIONSTATEMENT, JJTLABELSTATEMENT, JJTLOGICALANDEXPRESSION, JJTLOGICALOREXPRESSION, JJTMEMBERDECLARATION, JJTMULTIPLICATIVEEXPRESSION, JJTNAMESPACEALIASDEFINITION, JJTNAMESPACEDEFINITION, JJTNEWEXPRESSION, jjtNodeName, JJTPARAMETER, JJTPARAMETERTYPE, JJTPARAMETERTYPEQUALIFIER, JJTPOINTERTOMEMBEREXPRESSION, JJTPOSTFIXEXPRESSION, JJTPRIMARYEXPRESSION, JJTRELATIONALEXPRESSION, JJTRETURNSTATEMENT, JJTSHIFTEXPRESSION, JJTSWITCHSTATEMENT, JJTTHROWEXPRESSION, JJTTRANSLATIONUNIT, JJTTRYBLOCK, JJTTYPEIDEXPRESSION, JJTUNARYEXPRESSION, JJTVOID
 
Fields inherited from interface cppast.ParserConstants
_CHAR, _DEFAULT, AMPERSAND, AND, ARROWSTAR, ASSIGNEQUAL, AUTO, BITWISEANDEQUAL, BITWISEOR, BITWISEOREQUAL, BITWISEXOR, BITWISEXOREQUAL, BOOL, BREAK, C_STYLE_COMMENT, CASE, CATCH, CHAR, CHARACTER, CLASS, COLON, COMMA, CONST, CONTINUE, CPP_STYLE_COMMENT, DECIMALINT, DECIMALLONG, DEFAULT, DELETE, DIVIDE, DIVIDEEQUAL, DO, DOT, DOTSTAR, DOUBLE, ELLIPSIS, ELSE, ENUM, EOF, EQUAL, EXPLICIT, EXTERN, FALSETOK, FLOAT, FLOATONE, FLOATTWO, FOR, FRIEND, GOTO, GREATERTHAN, GREATERTHANOREQUALTO, HEXADECIMALINT, HEXADECIMALLONG, ID, IF, INLINE, INT, LCURLYBRACE, LESSTHAN, LESSTHANOREQUALTO, LONG, LPARENTHESIS, LSQUAREBRACKET, MINUS, MINUSEQUAL, MINUSMINUS, MOD, MODEQUAL, MUTABLE, NAMESPACE, NEW, NOT, NOTEQUAL, OCTALINT, OCTALLONG, OPERATOR, OR, PLUS, PLUSEQUAL, PLUSPLUS, POINTERTO, PREPROCESSOR, PRIVATE, PROTECTED, PUBLIC, QUESTIONMARK, RCURLYBRACE, REDECLARED, REGISTER, RETURN, RPARENTHESIS, RSQUAREBRACKET, SCOPE, SEMICOLON, SHIFTLEFT, SHIFTLEFTEQUAL, SHIFTRIGHT, SHIFTRIGHTEQUAL, SHORT, SIGNED, SIZEOF, STAR, STATIC, STRING, STRUCT, SWITCH, TEMPLATE, THIS, THROW, TILDE, TIMESEQUAL, tokenImage, TRUETOK, TRY, TYPEDEF, TYPEID, TYPENAME, UNION, UNSIGNED, UNSIGNED_DECIMALINT, UNSIGNED_DECIMALLONG, UNSIGNED_HEXADECIMALINT, UNSIGNED_HEXADECIMALLONG, UNSIGNED_OCTALINT, UNSIGNED_OCTALLONG, USING, VIRTUAL, VOID, VOLATILE, WCHAR_T, WHILE
 
Constructor Summary
Parser(java.io.InputStream stream)
           
Parser(java.io.InputStream stream, java.lang.String encoding)
           
Parser(ParserTokenManager tm)
           
Parser(java.io.Reader stream)
           
 
Method Summary
 void abstract_declarator_suffix()
           
 void abstract_declarator()
           
 void access_specifier()
           
 void additive_expression()
           
 void and_expression()
           
 void assignment_expression()
           
 void base_clause()
           
 void base_specifier()
           
 void block_declaration()
           
 void builtin_type_specifier()
           
 void cast_expression()
           
 java.lang.String class_head()
           
 void class_key()
           
 void class_name()
           
 void class_specifier()
           
 void compound_statement()
           
 void condition()
           
 void conditional_expression()
           
 void constant_expression()
           
 void constant()
           
 void conversion_function_decl_or_def()
           
 void conversion_function_id()
           
 void conversion_function()
           
 void ctor_declarator()
           
 void ctor_definition()
           
 void ctor_initializer()
           
 void cv_qualifier_seq()
           
 void declaration_specifiers()
           
 void declaration()
           
 void declarator_suffixes()
           
 void declarator()
           
 void delete_expression()
           
 void direct_declarator()
           
 void direct_new_declarator()
           
 void disable_tracing()
           
 void dtor_ctor_decl_spec()
           
 void dtor_declarator()
           
 void dtor_definition()
           
 void enable_tracing()
           
 void enum_specifier()
           
 void enumerator_list()
           
 void enumerator()
           
 void equality_expression()
           
 void exception_declaration()
           
 void exception_spec()
           
 void exclusive_or_expression()
           
 void expression_list()
           
 void expression()
           
 void function_decl_or_def()
           
 void function_declarator_lookahead()
           
 void function_declarator()
           
 void function_direct_declarator()
           
 void function_parameters()
           
 void function()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void handler()
           
 void id_expression()
           
 void inclusive_or_expression()
           
 void init_declarator_list()
           
 void init_declarator()
           
 void initializer()
           
 void iteration_statement()
           
 void jump_statement()
           
 void labeled_statement()
           
 void linkage_specification()
           
 void logical_and_expression()
           
 void logical_or_expression()
           
 void mem_initializer_id()
           
 void mem_initializer()
           
 void member_declaration()
           
 void member_declarator_list()
           
 void member_declarator()
           
 void member_specification()
           
 void multiplicative_expression()
           
 void namespace_alias_definition()
           
 void namespace_definition()
           
 void new_declarator()
           
 void new_expression()
           
 void new_initializer()
           
 void new_placement()
           
 void new_type_id()
           
 void operator_function_id()
           
 void operator_id()
           
 void operator()
           
 void parameter_declaration_list()
           
 void parameter_declaration()
           
 void parameter_list()
           
 void pm_expression()
           
 void postfix_expression()
           
 void primary_expression()
           
 void ptr_operator_seq()
           
 void ptr_operator()
           
 void pure_specifier()
           
 void qualified_id()
           
 void qualified_type()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 void relational_expression()
           
 void scope_override_lookahead()
           
 java.lang.String scope_override()
           
 void selection_statement()
           
 void shift_expression()
           
 void simple_declaration()
           
 void simple_dtor_declarator()
           
 void statement_list()
           
 void statement()
           
 void storage_class_specifier()
           
 void template_argument_list()
           
 void template_argument()
           
 void template_declaration()
           
 void template_head()
           
 void template_id()
           
 void template_parameter_list()
           
 void template_parameter()
           
 void throw_expression()
           
 AstTranslationUnit translation_unit()
           
 void try_block()
           
 void type_id_list()
           
 void type_id()
           
 void type_modifiers()
           
 void type_qualifier()
           
 void unary_expression()
           
 void unary_operator()
           
 void unqualified_id()
           
 void using_declaration()
           
 void using_directive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected cppast.JJTParserState jjtree

token_source

public ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

Parser

public Parser(java.io.InputStream stream)

Parser

public Parser(java.io.InputStream stream,
              java.lang.String encoding)

Parser

public Parser(java.io.Reader stream)

Parser

public Parser(ParserTokenManager tm)
Method Detail

translation_unit

public final AstTranslationUnit translation_unit()
                                          throws ParseException
Throws:
ParseException

declaration

public final void declaration()
                       throws ParseException
Throws:
ParseException

template_declaration

public final void template_declaration()
                                throws ParseException
Throws:
ParseException

function_decl_or_def

public final void function_decl_or_def()
                                throws ParseException
Throws:
ParseException

function

public final void function()
                    throws ParseException
Throws:
ParseException

conversion_function_decl_or_def

public final void conversion_function_decl_or_def()
                                           throws ParseException
Throws:
ParseException

conversion_function

public final void conversion_function()
                               throws ParseException
Throws:
ParseException

function_parameters

public final void function_parameters()
                               throws ParseException
Throws:
ParseException

parameter_list

public final void parameter_list()
                          throws ParseException
Throws:
ParseException

operator_id

public final void operator_id()
                       throws ParseException
Throws:
ParseException

linkage_specification

public final void linkage_specification()
                                 throws ParseException
Throws:
ParseException

using_directive

public final void using_directive()
                           throws ParseException
Throws:
ParseException

using_declaration

public final void using_declaration()
                             throws ParseException
Throws:
ParseException

namespace_definition

public final void namespace_definition()
                                throws ParseException
Throws:
ParseException

declaration_specifiers

public final void declaration_specifiers()
                                  throws ParseException
Throws:
ParseException

type_modifiers

public final void type_modifiers()
                          throws ParseException
Throws:
ParseException

storage_class_specifier

public final void storage_class_specifier()
                                   throws ParseException
Throws:
ParseException

type_qualifier

public final void type_qualifier()
                          throws ParseException
Throws:
ParseException

builtin_type_specifier

public final void builtin_type_specifier()
                                  throws ParseException
Throws:
ParseException

scope_override_lookahead

public final void scope_override_lookahead()
                                    throws ParseException
Throws:
ParseException

scope_override

public final java.lang.String scope_override()
                                      throws ParseException
Throws:
ParseException

qualified_id

public final void qualified_id()
                        throws ParseException
Throws:
ParseException

qualified_type

public final void qualified_type()
                          throws ParseException
Throws:
ParseException

init_declarator_list

public final void init_declarator_list()
                                throws ParseException
Throws:
ParseException

init_declarator

public final void init_declarator()
                           throws ParseException
Throws:
ParseException

initializer

public final void initializer()
                       throws ParseException
Throws:
ParseException

class_specifier

public final void class_specifier()
                           throws ParseException
Throws:
ParseException

class_key

public final void class_key()
                     throws ParseException
Throws:
ParseException

class_head

public final java.lang.String class_head()
                                  throws ParseException
Throws:
ParseException

base_clause

public final void base_clause()
                       throws ParseException
Throws:
ParseException

base_specifier

public final void base_specifier()
                          throws ParseException
Throws:
ParseException

member_specification

public final void member_specification()
                                throws ParseException
Throws:
ParseException

access_specifier

public final void access_specifier()
                            throws ParseException
Throws:
ParseException

member_declaration

public final void member_declaration()
                              throws ParseException
Throws:
ParseException

member_declarator_list

public final void member_declarator_list()
                                  throws ParseException
Throws:
ParseException

member_declarator

public final void member_declarator()
                             throws ParseException
Throws:
ParseException

pure_specifier

public final void pure_specifier()
                          throws ParseException
Throws:
ParseException

enum_specifier

public final void enum_specifier()
                          throws ParseException
Throws:
ParseException

enumerator_list

public final void enumerator_list()
                           throws ParseException
Throws:
ParseException

enumerator

public final void enumerator()
                      throws ParseException
Throws:
ParseException

ptr_operator

public final void ptr_operator()
                        throws ParseException
Throws:
ParseException

cv_qualifier_seq

public final void cv_qualifier_seq()
                            throws ParseException
Throws:
ParseException

function_declarator_lookahead

public final void function_declarator_lookahead()
                                         throws ParseException
Throws:
ParseException

function_declarator

public final void function_declarator()
                               throws ParseException
Throws:
ParseException

function_direct_declarator

public final void function_direct_declarator()
                                      throws ParseException
Throws:
ParseException

dtor_ctor_decl_spec

public final void dtor_ctor_decl_spec()
                               throws ParseException
Throws:
ParseException

dtor_definition

public final void dtor_definition()
                           throws ParseException
Throws:
ParseException

ctor_definition

public final void ctor_definition()
                           throws ParseException
Throws:
ParseException

ctor_declarator

public final void ctor_declarator()
                           throws ParseException
Throws:
ParseException

ctor_initializer

public final void ctor_initializer()
                            throws ParseException
Throws:
ParseException

mem_initializer

public final void mem_initializer()
                           throws ParseException
Throws:
ParseException

mem_initializer_id

public final void mem_initializer_id()
                              throws ParseException
Throws:
ParseException

class_name

public final void class_name()
                      throws ParseException
Throws:
ParseException

dtor_declarator

public final void dtor_declarator()
                           throws ParseException
Throws:
ParseException

simple_dtor_declarator

public final void simple_dtor_declarator()
                                  throws ParseException
Throws:
ParseException

parameter_declaration_list

public final void parameter_declaration_list()
                                      throws ParseException
Throws:
ParseException

parameter_declaration

public final void parameter_declaration()
                                 throws ParseException
Throws:
ParseException

type_id

public final void type_id()
                   throws ParseException
Throws:
ParseException

declarator

public final void declarator()
                      throws ParseException
Throws:
ParseException

ptr_operator_seq

public final void ptr_operator_seq()
                            throws ParseException
Throws:
ParseException

direct_declarator

public final void direct_declarator()
                             throws ParseException
Throws:
ParseException

declarator_suffixes

public final void declarator_suffixes()
                               throws ParseException
Throws:
ParseException

abstract_declarator

public final void abstract_declarator()
                               throws ParseException
Throws:
ParseException

abstract_declarator_suffix

public final void abstract_declarator_suffix()
                                      throws ParseException
Throws:
ParseException

template_head

public final void template_head()
                         throws ParseException
Throws:
ParseException

template_parameter_list

public final void template_parameter_list()
                                   throws ParseException
Throws:
ParseException

template_parameter

public final void template_parameter()
                              throws ParseException
Throws:
ParseException

template_argument_list

public final void template_argument_list()
                                  throws ParseException
Throws:
ParseException

template_argument

public final void template_argument()
                             throws ParseException
Throws:
ParseException

statement_list

public final void statement_list()
                          throws ParseException
Throws:
ParseException

statement

public final void statement()
                     throws ParseException
Throws:
ParseException

block_declaration

public final void block_declaration()
                             throws ParseException
Throws:
ParseException

simple_declaration

public final void simple_declaration()
                              throws ParseException
Throws:
ParseException

namespace_alias_definition

public final void namespace_alias_definition()
                                      throws ParseException
Throws:
ParseException

labeled_statement

public final void labeled_statement()
                             throws ParseException
Throws:
ParseException

compound_statement

public final void compound_statement()
                              throws ParseException
Throws:
ParseException

selection_statement

public final void selection_statement()
                               throws ParseException
Throws:
ParseException

iteration_statement

public final void iteration_statement()
                               throws ParseException
Throws:
ParseException

condition

public final void condition()
                     throws ParseException
Throws:
ParseException

jump_statement

public final void jump_statement()
                          throws ParseException
Throws:
ParseException

try_block

public final void try_block()
                     throws ParseException
Throws:
ParseException

handler

public final void handler()
                   throws ParseException
Throws:
ParseException

exception_declaration

public final void exception_declaration()
                                 throws ParseException
Throws:
ParseException

throw_expression

public final void throw_expression()
                            throws ParseException
Throws:
ParseException

expression

public final void expression()
                      throws ParseException
Throws:
ParseException

assignment_expression

public final void assignment_expression()
                                 throws ParseException
Throws:
ParseException

constant_expression

public final void constant_expression()
                               throws ParseException
Throws:
ParseException

conditional_expression

public final void conditional_expression()
                                  throws ParseException
Throws:
ParseException

logical_or_expression

public final void logical_or_expression()
                                 throws ParseException
Throws:
ParseException

logical_and_expression

public final void logical_and_expression()
                                  throws ParseException
Throws:
ParseException

inclusive_or_expression

public final void inclusive_or_expression()
                                   throws ParseException
Throws:
ParseException

exclusive_or_expression

public final void exclusive_or_expression()
                                   throws ParseException
Throws:
ParseException

and_expression

public final void and_expression()
                          throws ParseException
Throws:
ParseException

equality_expression

public final void equality_expression()
                               throws ParseException
Throws:
ParseException

relational_expression

public final void relational_expression()
                                 throws ParseException
Throws:
ParseException

shift_expression

public final void shift_expression()
                            throws ParseException
Throws:
ParseException

additive_expression

public final void additive_expression()
                               throws ParseException
Throws:
ParseException

multiplicative_expression

public final void multiplicative_expression()
                                     throws ParseException
Throws:
ParseException

pm_expression

public final void pm_expression()
                         throws ParseException
Throws:
ParseException

cast_expression

public final void cast_expression()
                           throws ParseException
Throws:
ParseException

unary_expression

public final void unary_expression()
                            throws ParseException
Throws:
ParseException

unary_operator

public final void unary_operator()
                          throws ParseException
Throws:
ParseException

postfix_expression

public final void postfix_expression()
                              throws ParseException
Throws:
ParseException

id_expression

public final void id_expression()
                         throws ParseException
Throws:
ParseException

unqualified_id

public final void unqualified_id()
                          throws ParseException
Throws:
ParseException

operator_function_id

public final void operator_function_id()
                                throws ParseException
Throws:
ParseException

conversion_function_id

public final void conversion_function_id()
                                  throws ParseException
Throws:
ParseException

template_id

public final void template_id()
                       throws ParseException
Throws:
ParseException

primary_expression

public final void primary_expression()
                              throws ParseException
Throws:
ParseException

new_expression

public final void new_expression()
                          throws ParseException
Throws:
ParseException

new_placement

public final void new_placement()
                         throws ParseException
Throws:
ParseException

new_type_id

public final void new_type_id()
                       throws ParseException
Throws:
ParseException

new_declarator

public final void new_declarator()
                          throws ParseException
Throws:
ParseException

direct_new_declarator

public final void direct_new_declarator()
                                 throws ParseException
Throws:
ParseException

new_initializer

public final void new_initializer()
                           throws ParseException
Throws:
ParseException

delete_expression

public final void delete_expression()
                             throws ParseException
Throws:
ParseException

expression_list

public final void expression_list()
                           throws ParseException
Throws:
ParseException

constant

public final void constant()
                    throws ParseException
Throws:
ParseException

operator

public final void operator()
                    throws ParseException
Throws:
ParseException

exception_spec

public final void exception_spec()
                          throws ParseException
Throws:
ParseException

type_id_list

public final void type_id_list()
                        throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(ParserTokenManager 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()


Copyright © 2006-2007 null. All Rights Reserved.