#include <ptree-core.h>
Inheritance diagram for Ptree:
Public Methods | |
virtual bool | IsLeaf ()=0 |
bool | Eq (char) |
bool | Eq (char *) |
bool | Eq (const char *, int) |
bool | Eq (Ptree *p) |
void | Display () |
void | Display2 (ostream &) |
virtual void | Print (ostream &, int, int)=0 |
int | Write (ostream &) |
virtual int | Write (ostream &, int)=0 |
void | PrintIndent (ostream &, int) |
char * | ToString () |
virtual void | WritePS (ProgramString &)=0 |
char * | GetPosition () |
int | GetLength () |
Ptree * | Car () |
Ptree * | Cdr () |
Ptree * | Cadr () |
Ptree * | Cddr () |
Ptree * | Ca_ar () |
void | SetCar (Ptree *p) |
void | SetCdr (Ptree *p) |
char * | LeftMost () |
char * | RightMost () |
virtual int | What () |
bool | IsA (int) |
bool | IsA (int, int) |
bool | IsA (int, int, int) |
virtual Ptree * | Translate (Walker *) |
virtual void | Typeof (Walker *, TypeInfo &) |
virtual char * | GetEncodedType () |
virtual char * | GetEncodedName () |
Ptree * | Last () |
Ptree * | First () |
Ptree * | Rest () |
Ptree * | Second () |
Ptree * | Third () |
Ptree * | Nth (int n) |
int | Length () |
Ptree * | ListTail (int n) |
bool | Reify (unsigned int &) |
bool | Reify (char *&) |
Static Public Methods | |
bool | Eq (Ptree *, char) |
bool | Eq (Ptree *, char *) |
bool | Eq (Ptree *, char *, int) |
bool | Eq (Ptree *, Ptree *) |
bool | Equiv (Ptree *, Ptree *) |
bool | Equal (Ptree *, Ptree *) |
Ptree * | Last (Ptree *) |
Ptree * | First (Ptree *) |
Ptree * | Rest (Ptree *) |
Ptree * | Second (Ptree *) |
Ptree * | Third (Ptree *) |
Ptree * | Nth (Ptree *, int) |
int | Length (Ptree *) |
Ptree * | ListTail (Ptree *, int) |
Ptree * | Cons (Ptree *, Ptree *) |
Ptree * | List () |
Ptree * | List (Ptree *) |
Ptree * | List (Ptree *, Ptree *) |
Ptree * | List (Ptree *, Ptree *, Ptree *) |
Ptree * | List (Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | List (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | List (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | List (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | List (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | CopyList (Ptree *) |
Ptree * | Append (Ptree *, Ptree *) |
Ptree * | ReplaceAll (Ptree *, Ptree *, Ptree *) |
Ptree * | Subst (Ptree *, Ptree *, Ptree *) |
Ptree * | Subst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | Subst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | ShallowSubst (Ptree *, Ptree *, Ptree *) |
Ptree * | ShallowSubst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | ShallowSubst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | ShallowSubst (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *) |
Ptree * | SubstSublist (Ptree *, Ptree *, Ptree *) |
Ptree * | Snoc (Ptree *, Ptree *) |
Ptree * | Nconc (Ptree *, Ptree *) |
Ptree * | Nconc (Ptree *, Ptree *, Ptree *) |
bool | Match (Ptree *, char *,...) |
Ptree * | Make (const char *pat,...) |
Ptree * | MakeStatement (const char *pat,...) |
Ptree * | GenSym () |
Ptree * | qMake (char *) |
Ptree * | qMakeStatement (char *) |
char * | IntegerToString (sint, int &) |
Static Public Attributes | |
bool | show_encoded = 0 |
Protected Attributes | |
union { | |
struct { | |
Ptree * child | |
Ptree * next | |
} nonleaf | |
struct { | |
char * position | |
int length | |
} leaf | |
} | data |
Static Private Methods | |
char * | MatchPat (Ptree *, char *) |
char * | MatchList (Ptree *, char *) |
char * | MatchWord (Ptree *, char *) |
Friends | |
class | NonLeaf |
|
Definition at line 497 of file ptree-core.cc. References Car(), Cdr(), Cons(), IsLeaf(), nil, and SetCdr(). Referenced by Template_spec::add_code(), Annotator::add_output_list(), Class::AppendBaseClass(), CopyList(), and ClassWalker::MakeMemberDeclarator(). |
|
Definition at line 164 of file ptree-core.cc. References Car(), IsLeaf(), and nil. Referenced by Parser::ErrorMessage(), and Parser::WarningMessage(). |
|
Definition at line 55 of file ptree-core.h. References Car(). Referenced by Member::Arguments(), Walker::GetArgDeclList(), PtreeUsing::isNamespace(), Walker::TranslateArgDeclList2(), Walker::TranslateDefault(), Walker::TranslateLabel(), Walker::TranslateNew(), Walker::TranslateNewDeclarator(), Walker::TranslateNewDeclarator2(), and PtreeBrace::Write(). |
|
|
Definition at line 56 of file ptree-core.h. References Cdr(). Referenced by Member::Arguments(), Walker::TranslateArgDeclList2(), and Walker::TranslateTry(). |
|
|
Definition at line 437 of file ptree-core.cc. References NonLeaf. Referenced by PtreeArray::All(), Append(), Class::AppendBaseClass(), Member::Arguments(), ClassWalker::ConstructClass(), ClassWalker::ConstructMember(), convert_comma_expr_to_list(), TypeInfo::GetQualifiedName2(), Encoding::MakePtree(), Parser::rCastOperatorName(), Parser::rIntegralDeclaration(), Parser::rIntegralDeclStatement(), Parser::rOtherDeclaration(), Parser::rOtherDeclStatement(), Parser::rPostfixExpr(), Parser::rPrimaryExpr(), Parser::rTempArgDeclaration(), Parser::rTypeSpecifier(), ShallowSubst(), Snoc(), Subst(), SubstSublist(), Walker::TranslateArgDeclList2(), ClassWalker::TranslateClassSpec(), Class::TranslateNew(), ClassWalker::TranslateStorageSpecifiers2(), and Walker::TranslateTry(). |
|
Definition at line 490 of file ptree-core.cc. |
|
Definition at line 79 of file ptree-core.cc. References Display2(). Referenced by convert_decl_to_expr(). |
|
Definition at line 84 of file ptree-core.cc. Referenced by bogus_ptree_error(), Display(), Source::dump(), Init_reader::dump(), and ParseOpencxx(). |
|
Definition at line 281 of file ptree-core.cc. References FALSE, GetLength(), GetPosition(), IsLeaf(), nil, and TRUE. |
|
Definition at line 276 of file ptree-core.cc. References Eq(). |
|
Definition at line 271 of file ptree-core.cc. References Eq(). |
|
Definition at line 266 of file ptree-core.cc. References Eq(). |
|
Definition at line 38 of file ptree-core.h. |
|
Definition at line 146 of file ptree-core.cc. References FALSE, GetLength(), GetPosition(), IsLeaf(), nil, and TRUE. |
|
Definition at line 128 of file ptree-core.cc. References FALSE, GetLength(), GetPosition(), IsLeaf(), and nil. |
|
|
Definition at line 329 of file ptree-core.cc. References Car(), Cdr(), Eq(), FALSE, IsLeaf(), nil, and TRUE. |
|
Definition at line 308 of file ptree-core.cc. References Car(), Cdr(), Eq(), FALSE, IsLeaf(), nil, and TRUE. Referenced by ClassWalker::CheckEquiv(), ClassWalker::CheckMemberEquiv(), and ClassWalker::TranslateUnary(). |
|
Definition at line 353 of file ptree-core.cc. |
|
|
Definition at line 218 of file pattern.cc. References IntegerToString(), and uint. Referenced by Metaclass::TranslateClass(). |
|
Reimplemented in PtreeUsing, PtreeDeclarator, PtreeName, PtreeClassSpec, and PtreeEnumSpec. Definition at line 258 of file ptree-core.cc. References nil. Referenced by MemberList::Append(), ClassWalker::ConstructClass(), Environment::DontRecordDeclarator(), Member::IsConstructor(), Member::IsDestructor(), Environment::IsMember(), MemberList::Lookup(), Environment::Lookup(), Environment::LookupClassMetaobject(), Environment::LookupTop(), Walker::MatchedDeclarator(), Member::Name(), NonLeaf::PrintWithEncodeds(), Environment::RecordDeclarator(), Environment::RecordEnumName(), Environment::RecordTemplateClass(), Environment::RecordTemplateFunction(), Environment::RecordTypedefName(), Environment::RecordUsing(), Environment::RecordUsingNamespace(), Member::SetName(), Walker::TranslateClassSpec(), ClassWalker::TranslateClassSpec(), and Walker::WhichDeclarator(). |
|
Reimplemented in PtreeDeclarator, and PtreeFstyleCastExpr. Definition at line 253 of file ptree-core.cc. References nil. Referenced by MemberList::Append(), Member::Find(), Walker::MatchedDeclarator(), NonLeaf::PrintWithEncodeds(), Environment::RecordDeclarator(), Environment::RecordTypedefName(), Member::Signature(), Walker::TranslateFstyleCast(), ClassWalker::TranslateNew2(), Walker::TypeofCast(), Walker::TypeofFstyleCast(), and Walker::TypeofNew(). |
|
Definition at line 51 of file ptree-core.h. Referenced by PtreeHead::Append(), convert_node_to_name(), Encoding::Destructor(), Eq(), get_string_literal(), Metaclass::Load(), MemberList::Lookup(), Environment::Lookup(), Environment::LookupClassMetaobject(), Environment::LookupNamespace0(), Environment::LookupTop(), Make(), MakeStatement(), MatchWord(), Enum_symbol::process_value(), Metaclass::ProduceInitFile(), Environment::RecordEnumName(), Lex::Reify(), RightMost(), and Encoding::SimpleName(). |
|
Definition at line 50 of file ptree-core.h. Referenced by PtreeHead::Append(), convert_node_to_name(), Encoding::Destructor(), Eq(), Parser::ErrorMessage(), find_leaf(), get_string_literal(), Environment::GetLineNumber(), LeftMost(), Metaclass::Load(), MemberList::Lookup(), Environment::Lookup(), Environment::LookupClassMetaobject(), Environment::LookupNamespace0(), Environment::LookupTop(), Make(), MakeStatement(), MatchWord(), Enum_symbol::process_value(), Metaclass::ProduceInitFile(), Environment::RecordEnumName(), Lex::Reify(), RightMost(), Encoding::SimpleName(), and Parser::WarningMessage(). |
|
Definition at line 406 of file pattern.cc. References FALSE, length, sint, and TRUE. Referenced by GenSym(), Make(), MakeStatement(), and PtreeHead::operator+(). |
|
Definition at line 233 of file ptree-core.cc. |
|
Definition at line 223 of file ptree-core.cc. |
|
|
|
Definition at line 341 of file ptree-core.cc. |
|
Definition at line 75 of file ptree-core.h. Referenced by PtreeHead::Append(), Class::IsImmediateSubclassOf(), Member::IsPureVirtual(), Class::IsSubclassOf(), Walker::LookupBaseMetaclass(), ClassWalker::MakeMemberDeclarator(), Member::MemberInitializers(), Nconc(), Class::NthBaseClass(), Class::NthBaseClassName(), Walker::RecordBaseclassEnv(), Member::SetName(), Class::StripClassQualifier(), Walker::TranslateDeclarators(), Walker::TranslateDelete(), and ClassWalker::TranslateDelete(). |
|
Definition at line 173 of file ptree-core.cc. References Car(), Cdr(), GetPosition(), IsLeaf(), and nil. Referenced by Program::Insert(), and Program::Subst(). |
|
Definition at line 411 of file ptree-core.cc. |
|
|
Definition at line 484 of file ptree-core.cc. |
|
Definition at line 478 of file ptree-core.cc. |
|
Definition at line 472 of file ptree-core.cc. |
|
Definition at line 467 of file ptree-core.cc. |
|
Definition at line 462 of file ptree-core.cc. |
|
Definition at line 457 of file ptree-core.cc. |
|
Definition at line 452 of file ptree-core.cc. |
|
Definition at line 442 of file ptree-core.cc. |
|
|
Definition at line 429 of file ptree-core.cc. |
|
Definition at line 82 of file ptree-core.h. Referenced by Member::GetUserArgumentModifiers(), Program::MinimumSubst2(), Environment::RecordTypedefName(), Walker::TranslateDeclarators(), Walker::TranslateNewDeclarator2(), ClassWalker::TranslateStaticUserStatement(), Walker::TranslateTypedef(), ClassBodyWalker::TranslateTypedef(), and ClassWalker::TranslateUserStatement(). |
|
Definition at line 251 of file pattern.cc. References GetLength(), GetPosition(), IntegerToString(), IsLeaf(), List(), MopErrorMessage(), Nconc(), nil, and Snoc(). Referenced by Metaclass::AppendHousekeepingCode(), Member::Arguments(), Class::Class(), Walker::FillArgumentName(), Metaclass::GetFinalizer(), Metaclass::InsertInitialize(), Metaclass::ProduceInitFile(), and Metaclass::TranslateClass(). |
|
Definition at line 326 of file pattern.cc. References GetLength(), GetPosition(), IntegerToString(), IsLeaf(), List(), MopErrorMessage(), Nconc(), nil, Snoc(), and Class::WarnObsoleteness(). |
|
Definition at line 60 of file pattern.cc. References CountArgs(), FALSE, MatchPat(), MAX, MopErrorMessage(), MopMoreWarningMessage(), MopWarningMessage(), nil, resultsIndex, SkipSpaces(), and TRUE. |
|
Definition at line 134 of file pattern.cc. References Car(), Cdr(), MatchPat(), MopErrorMessage(), nil, resultsIndex, and SkipSpaces(). Referenced by MatchPat(). |
|
Definition at line 105 of file pattern.cc. References IsLeaf(), MatchList(), MatchWord(), nil, and resultsIndex. |
|
Definition at line 169 of file pattern.cc. References GetLength(), GetPosition(), and nil. Referenced by MatchPat(). |
|
Definition at line 775 of file ptree-core.cc. References Nconc(). |
|
Definition at line 765 of file ptree-core.cc. References data, Last(), and nil. Referenced by TypeInfo::FullTypeName(), ClassWalker::GetAppendedPtree(), ClassWalker::GetInsertedPtree(), List(), Make(), Encoding::MakePtree(), MakeStatement(), Nconc(), Parser::optPtrOperator(), Parser::rAllocateExpr(), Parser::rArgDeclaration(), Parser::rCastOperatorName(), Parser::rConstructorDecl(), Parser::rDeclaration(), Parser::rDeclarator2(), Parser::rDeclaratorWithInit(), Parser::rEnumBody(), Parser::rIfStatement(), Parser::rIntegralDeclaration(), Parser::rIntegralDeclStatement(), Parser::rMetaclassDecl(), Parser::rName(), Parser::rNewDeclarator(), Parser::rOtherDeclaration(), Parser::rOtherDeclStatement(), Parser::rPtrToMember(), Parser::rTempArgDeclaration(), Parser::rTemplateDecl2(), Parser::rTypedef(), Parser::rTypeSpecifier(), Parser::rVarNameCore(), Snoc(), ClassWalker::TranslateFunctionBody(), and Walker::TranslateNewDeclarator2(). |
|
Definition at line 397 of file ptree-core.cc. |
|
|
Implemented in Leaf, DupLeaf, NonLeaf, PtreeBrace, PtreeDeclarator, PtreeName, and PtreeFstyleCastExpr. Referenced by Display2(), PtreeBrace::Print(), and NonLeaf::Print(). |
|
Definition at line 102 of file ptree-core.cc. Referenced by PtreeBrace::Print(), PtreeBrace::Write(), and Leaf::Write(). |
|
Definition at line 440 of file pattern.cc. References MopErrorMessage(), and nil. |
|
Definition at line 447 of file pattern.cc. References MopErrorMessage(), and nil. |
|
Definition at line 401 of file pattern.cc. References Lex::Reify(). |
|
Definition at line 396 of file pattern.cc. References Lex::Reify(). Referenced by QuoteClass::TranslateMemberCall(). |
|
Definition at line 528 of file ptree-core.cc. References PtreeArray::All(), PtreeArray::Append(), Car(), Cdr(), Eq(), FALSE, IsLeaf(), nil, and TRUE. |
|
Definition at line 361 of file ptree-core.cc. |
|
Definition at line 77 of file ptree-core.h. |
|
Definition at line 192 of file ptree-core.cc. References GetLength(), GetPosition(), IsLeaf(), Length(), nil, and Nth(). Referenced by Program::Insert(), and Program::Subst(). |
|
Definition at line 369 of file ptree-core.cc. |
|
|
Definition at line 58 of file ptree-core.h. Referenced by PtreeHead::Append(). |
|
Definition at line 59 of file ptree-core.h. References nonleaf. Referenced by Append(). |
|
Definition at line 710 of file ptree-core.cc. References Car(), Cdr(), Cons(), IsLeaf(), nil, and ShallowSubst(). |
|
Definition at line 675 of file ptree-core.cc. References Car(), Cdr(), Cons(), IsLeaf(), nil, and ShallowSubst(). |
|
Definition at line 646 of file ptree-core.cc. References Car(), Cdr(), Cons(), IsLeaf(), nil, and ShallowSubst(). |
|
Definition at line 623 of file ptree-core.cc. References Car(), Cdr(), Cons(), IsLeaf(), and nil. Referenced by Member::SetName(), ShallowSubst(), Walker::TranslateArguments(), ClassWalker::TranslateArray(), Walker::TranslateCase(), Walker::TranslateCast(), Walker::TranslateClassSpec(), Walker::TranslateDeclaration(), Walker::TranslateDelete(), ClassWalker::TranslateDelete(), Walker::TranslateDo(), Walker::TranslateFor(), Walker::TranslateIf(), Walker::TranslateNew2(), ClassWalker::TranslateNew2(), Walker::TranslateNewDeclarator(), Walker::TranslateReturn(), Walker::TranslateSizeof(), Class::TranslateSubscript(), Walker::TranslateSwitch(), Walker::TranslateTry(), Walker::TranslateTypespecifier(), and Walker::TranslateWhile(). |
|
|
Definition at line 595 of file ptree-core.cc. References Car(), Cdr(), Cons(), IsLeaf(), nil, and Subst(). |
|
Definition at line 573 of file ptree-core.cc. References Car(), Cdr(), Cons(), IsLeaf(), nil, and Subst(). |
|
Definition at line 555 of file ptree-core.cc. References Car(), Cdr(), Cons(), IsLeaf(), and nil. Referenced by ClassWalker::MakeMemberDeclarator(), Subst(), Walker::TranslateArray(), Walker::TranslateDeclarator(), Walker::TranslateDeclarators(), Walker::TranslateNew3(), and Walker::TranslateTemplateClass(). |
|
Definition at line 750 of file ptree-core.cc. References Car(), Cdr(), and Cons(). Referenced by Walker::TranslateDeclarators(). |
|
Definition at line 380 of file ptree-core.cc. |
|
|
|
|
Reimplemented in LeafName, LeafThis, PtreeName, PtreeFstyleCastExpr, PtreeCommaExpr, PtreeAssignExpr, PtreeCondExpr, PtreeInfixExpr, PtreePmExpr, PtreeCastExpr, PtreeUnaryExpr, PtreeThrowExpr, PtreeSizeofExpr, PtreeNewExpr, PtreeDeleteExpr, PtreeArrayExpr, PtreeFuncallExpr, PtreePostfixExpr, PtreeUserStatementExpr, PtreeDotMemberExpr, PtreeArrowMemberExpr, PtreeParenExpr, and PtreeStaticUserStatementExpr. Definition at line 248 of file ptree-core.cc. References Walker::TypeofPtree(). Referenced by Walker::Typeof(). |
|
|
Implemented in Leaf, NonLeaf, and PtreeBrace. |
|
Definition at line 94 of file ptree-core.cc. References nil. Referenced by Parser::ErrorMessage(), opcxx_ListOfMetaclass::FinalizeAll(), Class::FinalizeAll(), operator<<(), Parser::WarningMessage(), PtreeBrace::Write(), NonLeaf::Write(), and Program::Write(). |
|
Implemented in Leaf, and NonLeaf. Referenced by ToString(), and NonLeaf::WritePS(). |
|
Definition at line 169 of file ptree-core.h. |
|
Definition at line 160 of file ptree-core.h. |
|
Referenced by DupLeaf::DupLeaf(), Leaf::Leaf(), Nconc(), NonLeaf::NonLeaf(), NonLeaf::Print(), DupLeaf::Print(), Leaf::Print(), Leaf::Write(), and Leaf::WritePS(). |
|
|
|
Definition at line 165 of file ptree-core.h. Referenced by IntegerToString(). |
|
Definition at line 161 of file ptree-core.h. |
|
Referenced by SetCdr(). |
|
Definition at line 164 of file ptree-core.h. |
|
Definition at line 42 of file ptree-core.cc. |