org.freehep.jaco.rtti.cpp
Class CPPParser
java.lang.Object
|
+--org.freehep.jaco.rtti.cpp.CPPParser
- All Implemented Interfaces:
- CPPParserConstants
- public final class CPPParser
- extends Object
- implements CPPParserConstants
Fields inherited from interface org.freehep.jaco.rtti.cpp.CPPParserConstants |
_DEFAULT, AFTER_LINE_DIRECTIVE, AMPERSAND, AND, ARROWSTAR, ASSIGNEQUAL, AUTO, BITWISEANDEQUAL, BITWISEOR, BITWISEOREQUAL, BITWISEXOR, BITWISEXOREQUAL, BREAK, CASE, CATCH, CHAR, CHARACTER, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMALINT, DECIMALLONG, DEFAULT, DELETE, DIVIDE, DIVIDEEQUAL, DO, DOT, DOTSTAR, DOUBLE, ELLIPSIS, ELSE, ENUM, EOF, EQUAL, EXTERN, FALSETOK, FLOAT, FLOATONE, FLOATTWO, FOR, FORMAL_COMMENT, FRIEND, GOTO, GREATERTHAN, GREATERTHANOREQUALTO, HEXADECIMALINT, HEXADECIMALLONG, ID, IF, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INLINE, INT, LCURLYBRACE, LESSTHAN, LESSTHANOREQUALTO, LINE_DIRECTIVE, LINE_NUMBER, LONG, LPARENTHESIS, LSQUAREBRACKET, MINUS, MINUSEQUAL, MINUSMINUS, MOD, MODEQUAL, MULTI_LINE_COMMENT, NAMESPACE, NEW, NOT, NOTEQUAL, OCTALINT, OCTALLONG, OPERATOR, OR, PLUS, PLUSEQUAL, PLUSPLUS, POINTERTO, PREPROCESSOR_OUTPUT, PRIVATE, PROTECTED, PUBLIC, QUESTIONMARK, RCURLYBRACE, REDECLARED, REGISTER, RETURN, RPARENTHESIS, RSQUAREBRACKET, SCOPE, SEMICOLON, SHIFTLEFT, SHIFTLEFTEQUAL, SHIFTRIGHT, SHIFTRIGHTEQUAL, SHORT, SIGNED, SINGLE_LINE_COMMENT, SIZEOF, STAR, STATIC, STRING, STRUCT, SWITCH, TEMPLATE, THIS, THROW, TILDE, TIMESEQUAL, tokenImage, TRUETOK, TRY, TYPEDEF, UNION, UNSIGNED, UNSIGNED_DECIMALINT, UNSIGNED_DECIMALLONG, UNSIGNED_HEXADECIMALINT, UNSIGNED_HEXADECIMALLONG, UNSIGNED_OCTALINT, UNSIGNED_OCTALLONG, USING, VIRTUAL, VOID, VOLATILE, WHILE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public CPPParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
CPPParser
public CPPParser(InputStream stream)
CPPParser
public CPPParser(Reader stream)
CPPParser
public CPPParser(CPPParserTokenManager tm)
storeComment
public static void storeComment(Token token)
main
public static void main(String[] args)
translation_unit
public final void translation_unit()
throws ParseException
ParseException
declaration_list
public final void declaration_list()
throws ParseException
ParseException
namespace_definition
public final void namespace_definition()
throws ParseException
ParseException
namespace_alias_definition
public final void namespace_alias_definition()
throws ParseException
ParseException
using_declaration
public final void using_declaration()
throws ParseException
ParseException
using_directive
public final void using_directive()
throws ParseException
ParseException
namespace_name
public final String namespace_name()
throws ParseException
ParseException
external_declaration
public final void external_declaration()
throws ParseException
ParseException
function_definition
public final void function_definition(Vector methods)
throws ParseException
ParseException
func_decl_def
public final void func_decl_def(Scope sc)
throws ParseException
ParseException
linkage_specification
public final void linkage_specification()
throws ParseException
ParseException
declaration
public final void declaration()
throws ParseException
ParseException
type_modifiers
public final org.freehep.jaco.rtti.cpp.Modifiers type_modifiers()
throws ParseException
- Very temporary. Just returns true if it sees a typedef. Finally, we will
need a structure that stores all the attributes.
ParseException
declaration_specifiers
public final org.freehep.jaco.rtti.cpp.Declaration declaration_specifiers()
throws ParseException
- Very temporary. Just returns true if it sees a typedef. Finally, we will
need a structure that stores all the attributes.
ParseException
simple_type_specifier
public final void simple_type_specifier()
throws ParseException
ParseException
scope_override_lookahead
public final void scope_override_lookahead()
throws ParseException
ParseException
scope_override
public final String scope_override()
throws ParseException
ParseException
qualified_id
public final String qualified_id()
throws ParseException
ParseException
ptr_to_member
public final void ptr_to_member()
throws ParseException
ParseException
qualified_type
public final String qualified_type()
throws ParseException
ParseException
type_qualifier
public final void type_qualifier()
throws ParseException
ParseException
storage_class_specifier
public final void storage_class_specifier(org.freehep.jaco.rtti.cpp.Modifiers modifiers)
throws ParseException
- Very temporary. Just returns true if it sees a typedef. Finally, we will
need a structure that stores all the attributes.
ParseException
builtin_type_specifier
public final String builtin_type_specifier()
throws ParseException
ParseException
init_declarator_list
public final void init_declarator_list(boolean isTypedef)
throws ParseException
ParseException
init_declarator
public final void init_declarator(boolean isTypedef)
throws ParseException
ParseException
class_head
public final void class_head()
throws ParseException
ParseException
class_specifier
public final String class_specifier()
throws ParseException
ParseException
base_clause
public final Vector base_clause(org.freehep.jaco.rtti.cpp.ClassScope scope)
throws ParseException
ParseException
base_specifier
public final String base_specifier(org.freehep.jaco.rtti.cpp.ClassScope scope)
throws ParseException
ParseException
access_specifier
public final String access_specifier()
throws ParseException
ParseException
member_declaration
public final void member_declaration(Vector constructors,
Vector methods)
throws ParseException
ParseException
member_declarator_list
public final void member_declarator_list(boolean isTypedef)
throws ParseException
ParseException
member_declarator
public final void member_declarator(boolean isTypedef)
throws ParseException
ParseException
conversion_function_decl_or_def
public final void conversion_function_decl_or_def()
throws ParseException
ParseException
enum_specifier
public final void enum_specifier()
throws ParseException
ParseException
enumerator_list
public final void enumerator_list()
throws ParseException
ParseException
enumerator
public final void enumerator()
throws ParseException
ParseException
ptr_operator
public final void ptr_operator(org.freehep.jaco.rtti.cpp.Declaration declaration)
throws ParseException
ParseException
cv_qualifier_seq
public final void cv_qualifier_seq()
throws ParseException
ParseException
declarator
public final org.freehep.jaco.rtti.cpp.Declarator declarator()
throws ParseException
ParseException
direct_declarator
public final org.freehep.jaco.rtti.cpp.Declarator direct_declarator()
throws ParseException
ParseException
declarator_suffixes
public final void declarator_suffixes()
throws ParseException
ParseException
function_declarator_lookahead
public final void function_declarator_lookahead()
throws ParseException
- Used only for lookahead.
ParseException
function_declarator
public final Scope function_declarator(boolean isTypedef,
org.freehep.jaco.rtti.cpp.Declaration returnDec,
Vector methods)
throws ParseException
ParseException
function_direct_declarator
public final Scope function_direct_declarator(boolean isTypedef,
org.freehep.jaco.rtti.cpp.Declaration returnDec,
Vector methods)
throws ParseException
ParseException
dtor_ctor_decl_spec
public final void dtor_ctor_decl_spec()
throws ParseException
ParseException
dtor_definition
public final void dtor_definition()
throws ParseException
ParseException
ctor_definition
public final void ctor_definition(Vector constructors)
throws ParseException
ParseException
ctor_declarator_lookahead
public final void ctor_declarator_lookahead()
throws ParseException
ParseException
ctor_declarator
public final Scope ctor_declarator(Vector constructors)
throws ParseException
ParseException
ctor_initializer
public final void ctor_initializer()
throws ParseException
ParseException
superclass_init
public final void superclass_init()
throws ParseException
ParseException
dtor_declarator
public final void dtor_declarator()
throws ParseException
ParseException
simple_dtor_declarator
public final void simple_dtor_declarator()
throws ParseException
ParseException
parameter_list
public final Vector parameter_list()
throws ParseException
ParseException
parameter_declaration_list
public final Vector parameter_declaration_list()
throws ParseException
ParseException
parameter_declaration
public final INamedType parameter_declaration()
throws ParseException
ParseException
initializer
public final void initializer()
throws ParseException
ParseException
type_name
public final void type_name()
throws ParseException
ParseException
abstract_declarator
public final void abstract_declarator()
throws ParseException
ParseException
abstract_declarator_suffix
public final void abstract_declarator_suffix()
throws ParseException
ParseException
template_head
public final void template_head()
throws ParseException
ParseException
template_parameter_list
public final void template_parameter_list()
throws ParseException
ParseException
template_parameter
public final void template_parameter()
throws ParseException
ParseException
template_id
public final void template_id()
throws ParseException
ParseException
template_argument_list
public final void template_argument_list()
throws ParseException
ParseException
template_argument
public final void template_argument()
throws ParseException
ParseException
statement_list
public final void statement_list()
throws ParseException
ParseException
statement
public final void statement()
throws ParseException
ParseException
labeled_statement
public final void labeled_statement()
throws ParseException
ParseException
compound_statement
public final void compound_statement()
throws ParseException
ParseException
selection_statement
public final void selection_statement()
throws ParseException
ParseException
iteration_statement
public final void iteration_statement()
throws ParseException
ParseException
jump_statement
public final void jump_statement()
throws ParseException
ParseException
try_block
public final void try_block()
throws ParseException
ParseException
handler
public final void handler()
throws ParseException
ParseException
exception_declaration
public final void exception_declaration()
throws ParseException
ParseException
throw_statement
public final void throw_statement()
throws ParseException
ParseException
expression
public final void expression()
throws ParseException
ParseException
assignment_expression
public final void assignment_expression()
throws ParseException
ParseException
conditional_expression
public final void conditional_expression()
throws ParseException
ParseException
constant_expression
public final void constant_expression()
throws ParseException
ParseException
logical_or_expression
public final void logical_or_expression()
throws ParseException
ParseException
logical_and_expression
public final void logical_and_expression()
throws ParseException
ParseException
inclusive_or_expression
public final void inclusive_or_expression()
throws ParseException
ParseException
exclusive_or_expression
public final void exclusive_or_expression()
throws ParseException
ParseException
and_expression
public final void and_expression()
throws ParseException
ParseException
equality_expression
public final void equality_expression()
throws ParseException
ParseException
relational_expression
public final void relational_expression()
throws ParseException
ParseException
shift_expression
public final void shift_expression()
throws ParseException
ParseException
additive_expression
public final void additive_expression()
throws ParseException
ParseException
multiplicative_expression
public final void multiplicative_expression()
throws ParseException
ParseException
pm_expression
public final void pm_expression()
throws ParseException
ParseException
cast_expression
public final void cast_expression()
throws ParseException
ParseException
unary_expression
public final void unary_expression()
throws ParseException
ParseException
new_expression
public final void new_expression()
throws ParseException
ParseException
new_type_id
public final void new_type_id()
throws ParseException
ParseException
new_declarator
public final void new_declarator()
throws ParseException
ParseException
direct_new_declarator
public final void direct_new_declarator()
throws ParseException
ParseException
new_initializer
public final void new_initializer()
throws ParseException
ParseException
delete_expression
public final void delete_expression()
throws ParseException
ParseException
unary_operator
public final void unary_operator()
throws ParseException
ParseException
postfix_expression
public final void postfix_expression()
throws ParseException
ParseException
id_expression
public final void id_expression()
throws ParseException
ParseException
primary_expression
public final void primary_expression()
throws ParseException
ParseException
expression_list
public final void expression_list()
throws ParseException
ParseException
constant
public final void constant()
throws ParseException
ParseException
optor
public final void optor()
throws ParseException
ParseException
exception_spec
public final void exception_spec()
throws ParseException
ParseException
exception_list
public final void exception_list()
throws ParseException
ParseException
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(CPPParserTokenManager 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 © 2000-2003 FreeHEP, All Rights Reserved.