PUMA Library Reference Manual
|
#include <CBuilder.h>
Public Member Functions | |
CBuilder () | |
virtual CTree * | simple_name () |
virtual CTree * | literal () |
virtual CTree * | cmpd_str () |
virtual CTree * | str_literal () |
virtual CTree * | trans_unit () |
virtual CTree * | prim_expr () |
virtual CTree * | cmpd_literal () |
virtual CTree * | postfix_expr () |
virtual CTree * | postfix_expr1 () |
virtual CTree * | expr_list () |
virtual CTree * | unary_expr () |
virtual CTree * | unary_expr1 () |
virtual CTree * | cast_expr () |
virtual CTree * | cast_expr1 () |
virtual CTree * | cast_expr2 () |
virtual CTree * | offsetof_expr () |
virtual CTree * | memb_designator () |
virtual CTree * | mul_expr () |
virtual CTree * | add_expr () |
virtual CTree * | shift_expr () |
virtual CTree * | rel_expr () |
virtual CTree * | equ_expr () |
virtual CTree * | and_expr () |
virtual CTree * | excl_or_expr () |
virtual CTree * | incl_or_expr () |
virtual CTree * | log_and_expr () |
virtual CTree * | log_or_expr () |
virtual CTree * | cond_expr () |
virtual CTree * | ass_expr () |
virtual CTree * | ass_expr1 () |
virtual CTree * | expr () |
virtual CTree * | const_expr () |
virtual CTree * | stmt () |
virtual CTree * | label_stmt () |
virtual CTree * | expr_stmt () |
virtual CTree * | cmpd_stmt () |
virtual CTree * | stmt_seq () |
virtual CTree * | select_stmt () |
virtual CTree * | sub_stmt () |
virtual CTree * | condition (CTree *=(CTree *) 0) |
virtual CTree * | iter_stmt () |
virtual CTree * | for_init_stmt () |
virtual CTree * | jump_stmt () |
virtual CTree * | decl_seq () |
virtual CTree * | decl () |
virtual CTree * | block_decl () |
virtual CTree * | simple_decl () |
virtual CTree * | decl_spec () |
virtual CTree * | misc_spec () |
virtual CTree * | decl_spec_seq () |
virtual CTree * | decl_spec_seq1 () |
virtual CTree * | storage_class_spec () |
virtual CTree * | fct_spec () |
virtual CTree * | type_spec () |
virtual CTree * | simple_type_spec () |
virtual CTree * | type_name () |
virtual CTree * | elaborated_type_spec () |
virtual CTree * | enum_key () |
virtual CTree * | enum_spec () |
virtual CTree * | enum_spec1 () |
virtual CTree * | enumerator_list () |
virtual CTree * | enumerator_def () |
virtual CTree * | enumerator () |
virtual CTree * | asm_def () |
virtual CTree * | init_declarator_list () |
virtual CTree * | init_declarator () |
virtual CTree * | init_declarator1 () |
virtual CTree * | declarator () |
virtual CTree * | direct_declarator () |
virtual CTree * | direct_declarator1 () |
virtual CTree * | identifier_list () |
virtual CTree * | array_delim () |
virtual CTree * | ptr_operator () |
virtual CTree * | cv_qual_seq () |
virtual CTree * | cv_qual () |
virtual CTree * | declarator_id () |
virtual CTree * | type_id () |
virtual CTree * | abst_declarator () |
virtual CTree * | direct_abst_declarator () |
virtual CTree * | direct_abst_declarator1 () |
virtual CTree * | param_decl_clause () |
virtual CTree * | param_decl_list () |
virtual CTree * | param_decl () |
virtual CTree * | param_decl1 () |
virtual CTree * | fct_def () |
virtual CTree * | arg_decl_seq () |
virtual CTree * | fct_body () |
virtual CTree * | init () |
virtual CTree * | init_clause () |
virtual CTree * | init_list () |
virtual CTree * | init_list_item () |
virtual CTree * | designation () |
virtual CTree * | designator () |
virtual CTree * | class_spec () |
virtual CTree * | class_head () |
virtual CTree * | class_key () |
virtual CTree * | member_spec () |
virtual CTree * | member_decl () |
virtual CTree * | member_declarator_list () |
virtual CTree * | member_declarator () |
Public Member Functions inherited from Puma::Builder | |
virtual void | destroyNode (CTree *node) |
Destroy the given syntax tree node. | |
void | errors (ErrorSink &e) |
Print the collected error messages on the given error output stream. | |
ErrorSink & | err () const |
Get the collected errors. | |
void | save_state () |
Save the current state. | |
void | forget_state () |
Discard the saved state. | |
void | restore_state () |
Restore the saved state. | |
CTree * | token (Token *t) |
Create a new CT_Token object for the given token. | |
CTree * | error () |
Create a new CT_Error object. | |
int | nodes () const |
Get the current number of nodes on the builder stack. | |
CTree * | get_node (int n=0) const |
Get the n-th node from the builder stack. | |
void | setTokenCounter (unsigned long v) |
Reset the token counter. | |
unsigned long | getTokenCounter () const |
Get the current token count. | |
Public Member Functions inherited from Puma::PtrStack< CTree > | |
PtrStack (long size=8192, long incr=8192) | |
Construct a new layered stack. | |
virtual | ~PtrStack () |
Destructor. | |
void | Push (const CTree *item) |
Add a new item on the top of the current layer. | |
void | Pop () |
Remove the top item from the current layer. | |
CTree * | Top () const |
Get the top item from the current layer. | |
long | Length () const |
Get the number of items added to the current layer. | |
CTree * | Get (long n) const |
Get the n-th item on the current layer. | |
void | New () |
Create a new layer. | |
void | Forget () |
Remove the top layer and add its items to the underlying layer. | |
void | Reject () |
Remove the top layer. | |
void | Destroy () |
Remove the top layer and delete its items. | |
long | Stacks () const |
Get the number of layers. | |
void | Reset () |
Remove all layers. | |
Protected Member Functions | |
CTree * | lr_bin_expr () |
CTree * | prim_ds () |
Protected Member Functions inherited from Puma::Builder | |
Builder () | |
Constructor. | |
void | Delete () |
Destroy the top tree node of the builder stack. | |
CTree * | container () const |
Put all nodes on the builder stack into a Container object. | |
CTree * | list (CT_List *l) const |
Add all nodes on the builder stack to the given list node. | |
CTree * | copy_list (CT_List *l, Container *c) const |
Add all nodes of the given container to the given list node. | |
Protected Member Functions inherited from Puma::PtrStack< CTree > | |
virtual void | Remove () |
Remove the top item of the current layer. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Puma::Builder | |
static void | destroy (CTree *tree, bool recursive=true) |
Destroy the given syntax tree recursively. | |
Protected Attributes inherited from Puma::Builder | |
ErrorCollector | ec |
The error collector object. | |
Static Protected Attributes inherited from Puma::Builder | |
static unsigned long int | token_counter |
Counter for the created CT_Token object. | |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
virtual |
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in Puma::CCBuilder.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |