Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
cpp.ast.AstBuilder Class Reference
Inheritance diagram for cpp.ast.AstBuilder:

Public Member Functions

 __init__ (self, token_stream, filename, in_class='', visibility=None, namespace_stack=[])
 
 HandleError (self, msg, token)
 
 Generate (self)
 
 GetScope (self)
 
 GetName (self, seq=None)
 
 GetMethod (self, modifiers, templated_types)
 
 handle_bool (self)
 
 handle_char (self)
 
 handle_int (self)
 
 handle_long (self)
 
 handle_short (self)
 
 handle_double (self)
 
 handle_float (self)
 
 handle_void (self)
 
 handle_wchar_t (self)
 
 handle_unsigned (self)
 
 handle_signed (self)
 
 handle_struct (self)
 
 handle_union (self)
 
 handle_enum (self)
 
 handle_auto (self)
 
 handle_register (self)
 
 handle_const (self)
 
 handle_inline (self)
 
 handle_extern (self)
 
 handle_static (self)
 
 handle_virtual (self)
 
 handle_volatile (self)
 
 handle_mutable (self)
 
 handle_public (self)
 
 handle_protected (self)
 
 handle_private (self)
 
 handle_friend (self)
 
 handle_static_cast (self)
 
 handle_const_cast (self)
 
 handle_dynamic_cast (self)
 
 handle_reinterpret_cast (self)
 
 handle_new (self)
 
 handle_delete (self)
 
 handle_typedef (self)
 
 handle_typeid (self)
 
 handle_typename (self)
 
 handle_template (self)
 
 handle_true (self)
 
 handle_false (self)
 
 handle_asm (self)
 
 handle_class (self)
 
 handle_namespace (self)
 
 handle_using (self)
 
 handle_explicit (self)
 
 handle_this (self)
 
 handle_operator (self)
 
 handle_sizeof (self)
 
 handle_case (self)
 
 handle_switch (self)
 
 handle_default (self)
 
 handle_if (self)
 
 handle_else (self)
 
 handle_return (self)
 
 handle_goto (self)
 
 handle_try (self)
 
 handle_catch (self)
 
 handle_throw (self)
 
 handle_while (self)
 
 handle_do (self)
 
 handle_for (self)
 
 handle_break (self)
 
 handle_continue (self)
 

Public Attributes

 tokens = token_stream
 
 filename = filename
 
list token_queue = []
 
 namespace_stack = namespace_stack[:]
 
 in_class = in_class
 
 in_class_name_only = None
 
 visibility = visibility
 
bool in_function = False
 
 current_token = None
 
 converter = TypeConverter(self.namespace_stack)
 
list _handling_typedef = [method()]
 

Protected Member Functions

 _CreateVariable (self, pos_token, name, type_name, type_modifiers, ref_pointer_name_seq, templated_types, value=None)
 
 _GenerateOne (self, token)
 
 _GetTokensUpTo (self, expected_token_type, expected_token)
 
 _GetVarTokensUpTo (self, expected_token_type, *expected_tokens)
 
 _GetVarTokensUpToIgnoringTemplates (self, expected_token_type, *expected_tokens)
 
 _IgnoreUpTo (self, token_type, token)
 
 _SkipIf0Blocks (self)
 
 _GetMatchingChar (self, open_paren, close_paren, GetNextToken=None)
 
 _GetParameters (self)
 
 _GetNextToken (self)
 
 _AddBackToken (self, token)
 
 _AddBackTokens (self, tokens)
 
 _GetMethod (self, return_type_and_name, modifiers, templated_types, get_paren)
 
 _GetReturnTypeAndClassName (self, token_seq)
 
 _GetNestedType (self, ctor)
 
 _GetTemplatedTypes (self)
 
 _GetBases (self)
 
 _GetClass (self, class_type, visibility, templated_types)
 

Protected Attributes

bool _handling_typedef = False
 

Member Function Documentation

◆ GetName()

cpp.ast.AstBuilder.GetName ( self,
seq = None )
Returns ([tokens], next_token_info).

The documentation for this class was generated from the following file: