net.sourceforge.pmd.cpd.cppast
Class CPPParser
java.lang.Object
|
+--net.sourceforge.pmd.cpd.cppast.CPPParser
- All Implemented Interfaces:
- CPPParserConstants
- public final class CPPParser
- extends java.lang.Object
- implements CPPParserConstants
Fields inherited from interface net.sourceforge.pmd.cpd.cppast.CPPParserConstants |
_DEFAULT, 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, FRIEND, GOTO, GREATERTHAN, GREATERTHANOREQUALTO, HEXADECIMALINT, HEXADECIMALLONG, ID, IF, IN_COMMENT, IN_LINE_COMMENT, INLINE, INT, LCURLYBRACE, LESSTHAN, LESSTHANOREQUALTO, LONG, LPARENTHESIS, LSQUAREBRACKET, MINUS, MINUSEQUAL, MINUSMINUS, MOD, MODEQUAL, 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, 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, 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 static CPPParserTokenManager token_source
token
public static Token token
jj_nt
public static Token jj_nt
lookingAhead
public static boolean lookingAhead
CPPParser
public CPPParser(java.io.InputStream stream)
CPPParser
public CPPParser(java.io.Reader stream)
CPPParser
public CPPParser(CPPParserTokenManager tm)
main
public static void main(java.lang.String[] args)
translation_unit
public static final void translation_unit()
throws ParseException
ParseException
external_declaration
public static final void external_declaration()
throws ParseException
ParseException
function_definition
public static final void function_definition()
throws ParseException
ParseException
func_decl_def
public static final void func_decl_def(Scope sc)
throws ParseException
ParseException
linkage_specification
public static final void linkage_specification()
throws ParseException
ParseException
declaration
public static final void declaration()
throws ParseException
ParseException
type_modifiers
public static final boolean 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 static final boolean 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 static final void simple_type_specifier()
throws ParseException
ParseException
scope_override_lookahead
public static final void scope_override_lookahead()
throws ParseException
ParseException
scope_override
public static final java.lang.String scope_override()
throws ParseException
ParseException
qualified_id
public static final java.lang.String qualified_id()
throws ParseException
ParseException
ptr_to_member
public static final void ptr_to_member()
throws ParseException
ParseException
qualified_type
public static final void qualified_type()
throws ParseException
ParseException
type_qualifier
public static final void type_qualifier()
throws ParseException
ParseException
storage_class_specifier
public static final boolean storage_class_specifier()
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 static final void builtin_type_specifier()
throws ParseException
ParseException
init_declarator_list
public static final void init_declarator_list(boolean isTypedef)
throws ParseException
ParseException
init_declarator
public static final void init_declarator(boolean isTypedef)
throws ParseException
ParseException
class_head
public static final void class_head()
throws ParseException
ParseException
class_specifier
public static final void class_specifier()
throws ParseException
ParseException
base_clause
public static final void base_clause(ClassScope scope)
throws ParseException
ParseException
base_specifier
public static final void base_specifier(ClassScope scope)
throws ParseException
ParseException
access_specifier
public static final void access_specifier()
throws ParseException
ParseException
member_declaration
public static final void member_declaration()
throws ParseException
ParseException
member_declarator_list
public static final void member_declarator_list(boolean isTypedef)
throws ParseException
ParseException
member_declarator
public static final void member_declarator(boolean isTypedef)
throws ParseException
ParseException
conversion_function_decl_or_def
public static final void conversion_function_decl_or_def()
throws ParseException
ParseException
enum_specifier
public static final void enum_specifier()
throws ParseException
ParseException
enumerator_list
public static final void enumerator_list()
throws ParseException
ParseException
enumerator
public static final void enumerator()
throws ParseException
ParseException
ptr_operator
public static final void ptr_operator()
throws ParseException
ParseException
cv_qualifier_seq
public static final void cv_qualifier_seq()
throws ParseException
ParseException
declarator
public static final java.lang.String declarator()
throws ParseException
ParseException
direct_declarator
public static final java.lang.String direct_declarator()
throws ParseException
ParseException
declarator_suffixes
public static final void declarator_suffixes()
throws ParseException
ParseException
function_declarator_lookahead
public static final void function_declarator_lookahead()
throws ParseException
- Used only for lookahead.
ParseException
function_declarator
public static final Scope function_declarator(boolean isTypedef)
throws ParseException
ParseException
function_direct_declarator
public static final Scope function_direct_declarator(boolean isTypedef)
throws ParseException
ParseException
dtor_ctor_decl_spec
public static final void dtor_ctor_decl_spec()
throws ParseException
ParseException
dtor_definition
public static final void dtor_definition()
throws ParseException
ParseException
ctor_definition
public static final void ctor_definition()
throws ParseException
ParseException
ctor_declarator_lookahead
public static final void ctor_declarator_lookahead()
throws ParseException
ParseException
ctor_declarator
public static final Scope ctor_declarator()
throws ParseException
ParseException
ctor_initializer
public static final void ctor_initializer()
throws ParseException
ParseException
superclass_init
public static final void superclass_init()
throws ParseException
ParseException
dtor_declarator
public static final void dtor_declarator()
throws ParseException
ParseException
simple_dtor_declarator
public static final void simple_dtor_declarator()
throws ParseException
ParseException
parameter_list
public static final void parameter_list()
throws ParseException
ParseException
parameter_declaration_list
public static final void parameter_declaration_list()
throws ParseException
ParseException
parameter_declaration
public static final void parameter_declaration()
throws ParseException
ParseException
initializer
public static final void initializer()
throws ParseException
ParseException
type_name
public static final void type_name()
throws ParseException
ParseException
abstract_declarator
public static final void abstract_declarator()
throws ParseException
ParseException
abstract_declarator_suffix
public static final void abstract_declarator_suffix()
throws ParseException
ParseException
template_head
public static final void template_head()
throws ParseException
ParseException
template_parameter_list
public static final void template_parameter_list()
throws ParseException
ParseException
template_parameter
public static final void template_parameter()
throws ParseException
ParseException
template_id
public static final void template_id()
throws ParseException
ParseException
template_argument_list
public static final void template_argument_list()
throws ParseException
ParseException
template_argument
public static final void template_argument()
throws ParseException
ParseException
statement_list
public static final void statement_list()
throws ParseException
ParseException
statement
public static final void statement()
throws ParseException
ParseException
labeled_statement
public static final void labeled_statement()
throws ParseException
ParseException
compound_statement
public static final void compound_statement()
throws ParseException
ParseException
selection_statement
public static final void selection_statement()
throws ParseException
ParseException
iteration_statement
public static final void iteration_statement()
throws ParseException
ParseException
jump_statement
public static final void jump_statement()
throws ParseException
ParseException
try_block
public static final void try_block()
throws ParseException
ParseException
handler
public static final void handler()
throws ParseException
ParseException
exception_declaration
public static final void exception_declaration()
throws ParseException
ParseException
throw_statement
public static final void throw_statement()
throws ParseException
ParseException
expression
public static final void expression()
throws ParseException
ParseException
assignment_expression
public static final void assignment_expression()
throws ParseException
ParseException
conditional_expression
public static final void conditional_expression()
throws ParseException
ParseException
constant_expression
public static final void constant_expression()
throws ParseException
ParseException
logical_or_expression
public static final void logical_or_expression()
throws ParseException
ParseException
logical_and_expression
public static final void logical_and_expression()
throws ParseException
ParseException
inclusive_or_expression
public static final void inclusive_or_expression()
throws ParseException
ParseException
exclusive_or_expression
public static final void exclusive_or_expression()
throws ParseException
ParseException
and_expression
public static final void and_expression()
throws ParseException
ParseException
equality_expression
public static final void equality_expression()
throws ParseException
ParseException
relational_expression
public static final void relational_expression()
throws ParseException
ParseException
shift_expression
public static final void shift_expression()
throws ParseException
ParseException
additive_expression
public static final void additive_expression()
throws ParseException
ParseException
multiplicative_expression
public static final void multiplicative_expression()
throws ParseException
ParseException
pm_expression
public static final void pm_expression()
throws ParseException
ParseException
cast_expression
public static final void cast_expression()
throws ParseException
ParseException
unary_expression
public static final void unary_expression()
throws ParseException
ParseException
new_expression
public static final void new_expression()
throws ParseException
ParseException
new_type_id
public static final void new_type_id()
throws ParseException
ParseException
new_declarator
public static final void new_declarator()
throws ParseException
ParseException
direct_new_declarator
public static final void direct_new_declarator()
throws ParseException
ParseException
new_initializer
public static final void new_initializer()
throws ParseException
ParseException
delete_expression
public static final void delete_expression()
throws ParseException
ParseException
unary_operator
public static final void unary_operator()
throws ParseException
ParseException
postfix_expression
public static final void postfix_expression()
throws ParseException
ParseException
id_expression
public static final void id_expression()
throws ParseException
ParseException
primary_expression
public static final void primary_expression()
throws ParseException
ParseException
expression_list
public static final void expression_list()
throws ParseException
ParseException
constant
public static final void constant()
throws ParseException
ParseException
optor
public static final void optor()
throws ParseException
ParseException
exception_spec
public static final void exception_spec()
throws ParseException
ParseException
exception_list
public static final void exception_list()
throws ParseException
ParseException
ReInit
public static void ReInit(java.io.InputStream stream)
ReInit
public static void ReInit(java.io.Reader stream)
ReInit
public void ReInit(CPPParserTokenManager tm)
getNextToken
public static final Token getNextToken()
getToken
public static final Token getToken(int index)
generateParseException
public static ParseException generateParseException()
enable_tracing
public static final void enable_tracing()
disable_tracing
public static final void disable_tracing()
Copyright © 2002-2003 Project Ultra*Log @ DARPA. All Rights Reserved.