[Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/occ parse.cc,1.22 parse.h,1.5 ptree.cc,1.6 ptree.h,1.8 token.cc,1.9 token.h,1.4 walker.cc,1.8 walker.h,1.5
Stephen Davies chalky at users.sourceforge.netFri Aug 23 01:31:02 UTC 2002
- Previous message: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/regression regressions.py,1.2
- Next message: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/syn swalker.cc,1.54
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/occ
In directory usw-pr-cvs1:/tmp/cvs-serv17906/occ
Modified Files:
parse.cc parse.h ptree.cc ptree.h token.cc token.h walker.cc
walker.h
Log Message:
Add ability to parse typeid constructs, for boost.
Index: ptree.h
===================================================================
RCS file: /cvsroot/synopsis/Synopsis/Synopsis/Parser/C++/occ/ptree.h,v
retrieving revision 1.6
retrieving revision 1.8
diff -C2 -d -r1.6 -r1.8
*** ptree.h 23 May 2001 05:08:47 -0000 1.6
--- ptree.h 23 Aug 2002 08:30:08 -0000 1.8
***************
*** 35,39 ****
class CommentedLeaf : public Leaf {
public:
! CommentedLeaf(Token& tk, Ptree* c) : Leaf(tk) { comments = c; }
Ptree* GetComments() { return comments; }
void SetComments(Ptree* c) { comments = c; }
--- 35,40 ----
class CommentedLeaf : public Leaf {
public:
! CommentedLeaf(Token& tk, Ptree* c = NULL) : Leaf(tk) { comments = c; }
! CommentedLeaf(char* p, int l, Ptree* c = NULL) : Leaf(p, l) { comments = c; }
Ptree* GetComments() { return comments; }
void SetComments(Ptree* c) { comments = c; }
***************
*** 43,47 ****
};
! class LeafName : public Leaf {
public:
LeafName(Token&);
--- 44,48 ----
};
! class LeafName : public CommentedLeaf {
public:
LeafName(Token&);
***************
*** 53,57 ****
// The string given to the constructors are duplicated.
! class DupLeaf : public Leaf {
public:
DupLeaf(char*, int);
--- 54,58 ----
// The string given to the constructors are duplicated.
! class DupLeaf : public CommentedLeaf {
public:
DupLeaf(char*, int);
***************
*** 61,68 ****
};
! class LeafReserved : public Leaf {
public:
! LeafReserved(Token& t) : Leaf(t) {}
! LeafReserved(char* str, int len) : Leaf(str, len) {}
};
--- 62,69 ----
};
! class LeafReserved : public CommentedLeaf {
public:
! LeafReserved(Token& t) : CommentedLeaf(t) {}
! LeafReserved(char* str, int len) : CommentedLeaf(str, len) {}
};
***************
*** 385,388 ****
--- 386,390 ----
PtreeExprDecl(Throw);
PtreeExprDecl(Sizeof);
+ PtreeExprDecl(Typeid);
PtreeExprDecl(New);
PtreeExprDecl(Delete);
- Previous message: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/regression regressions.py,1.2
- Next message: [Synopsis-cvs] CVS: Synopsis/Synopsis/Parser/C++/syn swalker.cc,1.54
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list