cppast
Class Parser
java.lang.Object
cppast.Parser
- All Implemented Interfaces:
- ParserConstants, ParserTreeConstants
public final class Parser
- extends java.lang.Object
- implements ParserTreeConstants, ParserConstants
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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.