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.InputStream stream,
java.lang.String encoding)
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
- Throws:
ParseException
external_declaration
public static final void external_declaration()
throws ParseException
- Throws:
ParseException
function_definition
public static final void function_definition()
throws ParseException
- Throws:
ParseException
func_decl_def
public static final void func_decl_def(Scope sc)
throws ParseException
- Throws:
ParseException
linkage_specification
public static final void linkage_specification()
throws ParseException
- Throws:
ParseException
declaration
public static final void declaration()
throws ParseException
- Throws:
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.
- Throws:
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.
- Throws:
ParseException
simple_type_specifier
public static final void simple_type_specifier()
throws ParseException
- Throws:
ParseException
scope_override_lookahead
public static final void scope_override_lookahead()
throws ParseException
- Throws:
ParseException
scope_override
public static final java.lang.String scope_override()
throws ParseException
- Throws:
ParseException
qualified_id
public static final java.lang.String qualified_id()
throws ParseException
- Throws:
ParseException
ptr_to_member
public static final void ptr_to_member()
throws ParseException
- Throws:
ParseException
qualified_type
public static final void qualified_type()
throws ParseException
- Throws:
ParseException
type_qualifier
public static final void type_qualifier()
throws ParseException
- Throws:
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.
- Throws:
ParseException
builtin_type_specifier
public static final void builtin_type_specifier()
throws ParseException
- Throws:
ParseException
init_declarator_list
public static final void init_declarator_list(boolean isTypedef)
throws ParseException
- Throws:
ParseException
init_declarator
public static final void init_declarator(boolean isTypedef)
throws ParseException
- Throws:
ParseException
class_head
public static final void class_head()
throws ParseException
- Throws:
ParseException
class_specifier
public static final void class_specifier()
throws ParseException
- Throws:
ParseException
base_clause
public static final void base_clause(ClassScope scope)
throws ParseException
- Throws:
ParseException
base_specifier
public static final void base_specifier(ClassScope scope)
throws ParseException
- Throws:
ParseException
access_specifier
public static final void access_specifier()
throws ParseException
- Throws:
ParseException
member_declaration
public static final void member_declaration()
throws ParseException
- Throws:
ParseException
member_declarator_list
public static final void member_declarator_list(boolean isTypedef)
throws ParseException
- Throws:
ParseException
member_declarator
public static final void member_declarator(boolean isTypedef)
throws ParseException
- Throws:
ParseException
conversion_function_decl_or_def
public static final void conversion_function_decl_or_def()
throws ParseException
- Throws:
ParseException
enum_specifier
public static final void enum_specifier()
throws ParseException
- Throws:
ParseException
enumerator_list
public static final void enumerator_list()
throws ParseException
- Throws:
ParseException
enumerator
public static final void enumerator()
throws ParseException
- Throws:
ParseException
ptr_operator
public static final void ptr_operator()
throws ParseException
- Throws:
ParseException
cv_qualifier_seq
public static final void cv_qualifier_seq()
throws ParseException
- Throws:
ParseException
declarator
public static final java.lang.String declarator()
throws ParseException
- Throws:
ParseException
direct_declarator
public static final java.lang.String direct_declarator()
throws ParseException
- Throws:
ParseException
declarator_suffixes
public static final void declarator_suffixes()
throws ParseException
- Throws:
ParseException
function_declarator_lookahead
public static final void function_declarator_lookahead()
throws ParseException
- Used only for lookahead.
- Throws:
ParseException
function_declarator
public static final Scope function_declarator(boolean isTypedef)
throws ParseException
- Throws:
ParseException
function_direct_declarator
public static final Scope function_direct_declarator(boolean isTypedef)
throws ParseException
- Throws:
ParseException
dtor_ctor_decl_spec
public static final void dtor_ctor_decl_spec()
throws ParseException
- Throws:
ParseException
dtor_definition
public static final void dtor_definition()
throws ParseException
- Throws:
ParseException
ctor_definition
public static final void ctor_definition()
throws ParseException
- Throws:
ParseException
ctor_declarator_lookahead
public static final void ctor_declarator_lookahead()
throws ParseException
- Throws:
ParseException
ctor_declarator
public static final Scope ctor_declarator()
throws ParseException
- Throws:
ParseException
ctor_initializer
public static final void ctor_initializer()
throws ParseException
- Throws:
ParseException
superclass_init
public static final void superclass_init()
throws ParseException
- Throws:
ParseException
dtor_declarator
public static final void dtor_declarator()
throws ParseException
- Throws:
ParseException
simple_dtor_declarator
public static final void simple_dtor_declarator()
throws ParseException
- Throws:
ParseException
parameter_list
public static final void parameter_list()
throws ParseException
- Throws:
ParseException
parameter_declaration_list
public static final void parameter_declaration_list()
throws ParseException
- Throws:
ParseException
parameter_declaration
public static final void parameter_declaration()
throws ParseException
- Throws:
ParseException
initializer
public static final void initializer()
throws ParseException
- Throws:
ParseException
type_name
public static final void type_name()
throws ParseException
- Throws:
ParseException
abstract_declarator
public static final void abstract_declarator()
throws ParseException
- Throws:
ParseException
abstract_declarator_suffix
public static final void abstract_declarator_suffix()
throws ParseException
- Throws:
ParseException
template_head
public static final void template_head()
throws ParseException
- Throws:
ParseException
template_parameter_list
public static final void template_parameter_list()
throws ParseException
- Throws:
ParseException
template_parameter
public static final void template_parameter()
throws ParseException
- Throws:
ParseException
template_id
public static final void template_id()
throws ParseException
- Throws:
ParseException
template_argument_list
public static final void template_argument_list()
throws ParseException
- Throws:
ParseException
template_argument
public static final void template_argument()
throws ParseException
- Throws:
ParseException
statement_list
public static final void statement_list()
throws ParseException
- Throws:
ParseException
statement
public static final void statement()
throws ParseException
- Throws:
ParseException
labeled_statement
public static final void labeled_statement()
throws ParseException
- Throws:
ParseException
compound_statement
public static final void compound_statement()
throws ParseException
- Throws:
ParseException
selection_statement
public static final void selection_statement()
throws ParseException
- Throws:
ParseException
iteration_statement
public static final void iteration_statement()
throws ParseException
- Throws:
ParseException
jump_statement
public static final void jump_statement()
throws ParseException
- Throws:
ParseException
try_block
public static final void try_block()
throws ParseException
- Throws:
ParseException
handler
public static final void handler()
throws ParseException
- Throws:
ParseException
exception_declaration
public static final void exception_declaration()
throws ParseException
- Throws:
ParseException
throw_statement
public static final void throw_statement()
throws ParseException
- Throws:
ParseException
expression
public static final void expression()
throws ParseException
- Throws:
ParseException
assignment_expression
public static final void assignment_expression()
throws ParseException
- Throws:
ParseException
conditional_expression
public static final void conditional_expression()
throws ParseException
- Throws:
ParseException
constant_expression
public static final void constant_expression()
throws ParseException
- Throws:
ParseException
logical_or_expression
public static final void logical_or_expression()
throws ParseException
- Throws:
ParseException
logical_and_expression
public static final void logical_and_expression()
throws ParseException
- Throws:
ParseException
inclusive_or_expression
public static final void inclusive_or_expression()
throws ParseException
- Throws:
ParseException
exclusive_or_expression
public static final void exclusive_or_expression()
throws ParseException
- Throws:
ParseException
and_expression
public static final void and_expression()
throws ParseException
- Throws:
ParseException
equality_expression
public static final void equality_expression()
throws ParseException
- Throws:
ParseException
relational_expression
public static final void relational_expression()
throws ParseException
- Throws:
ParseException
shift_expression
public static final void shift_expression()
throws ParseException
- Throws:
ParseException
additive_expression
public static final void additive_expression()
throws ParseException
- Throws:
ParseException
multiplicative_expression
public static final void multiplicative_expression()
throws ParseException
- Throws:
ParseException
pm_expression
public static final void pm_expression()
throws ParseException
- Throws:
ParseException
cast_expression
public static final void cast_expression()
throws ParseException
- Throws:
ParseException
unary_expression
public static final void unary_expression()
throws ParseException
- Throws:
ParseException
new_expression
public static final void new_expression()
throws ParseException
- Throws:
ParseException
new_type_id
public static final void new_type_id()
throws ParseException
- Throws:
ParseException
new_declarator
public static final void new_declarator()
throws ParseException
- Throws:
ParseException
direct_new_declarator
public static final void direct_new_declarator()
throws ParseException
- Throws:
ParseException
new_initializer
public static final void new_initializer()
throws ParseException
- Throws:
ParseException
delete_expression
public static final void delete_expression()
throws ParseException
- Throws:
ParseException
unary_operator
public static final void unary_operator()
throws ParseException
- Throws:
ParseException
postfix_expression
public static final void postfix_expression()
throws ParseException
- Throws:
ParseException
id_expression
public static final void id_expression()
throws ParseException
- Throws:
ParseException
primary_expression
public static final void primary_expression()
throws ParseException
- Throws:
ParseException
expression_list
public static final void expression_list()
throws ParseException
- Throws:
ParseException
constant
public static final void constant()
throws ParseException
- Throws:
ParseException
optor
public static final void optor()
throws ParseException
- Throws:
ParseException
exception_spec
public static final void exception_spec()
throws ParseException
- Throws:
ParseException
exception_list
public static final void exception_list()
throws ParseException
- Throws:
ParseException
ReInit
public static void ReInit(java.io.InputStream stream)
ReInit
public static void ReInit(java.io.InputStream stream,
java.lang.String encoding)
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()