You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(9) |
Oct
(16) |
Nov
(14) |
Dec
(24) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(14) |
Feb
(57) |
Mar
(72) |
Apr
(37) |
May
(21) |
Jun
(12) |
Jul
(16) |
Aug
(33) |
Sep
(24) |
Oct
|
Nov
(10) |
Dec
(8) |
2004 |
Jan
(6) |
Feb
(14) |
Mar
(47) |
Apr
(41) |
May
(16) |
Jun
(31) |
Jul
(78) |
Aug
(62) |
Sep
(99) |
Oct
(43) |
Nov
(35) |
Dec
(9) |
2005 |
Jan
(19) |
Feb
(22) |
Mar
(7) |
Apr
|
May
(5) |
Jun
(4) |
Jul
(2) |
Aug
(9) |
Sep
(15) |
Oct
(23) |
Nov
(2) |
Dec
(20) |
2006 |
Jan
|
Feb
(2) |
Mar
(7) |
Apr
|
May
|
Jun
(8) |
Jul
(15) |
Aug
(1) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(11) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: aitor <ait...@ho...> - 2008-05-12 12:01:35
|
Hi, I have installed opencxx using apt-get, #apt-get install opencxx Architecture: i386 Version: 2.8-9 I have also download the tar openc++ to try the examples. and when I try the examples... ~/Desktop/opencxx-2.8/examples/verbose$ occ -m VerboseClass.mc EXECUTING: g++ g++ -D__opencxx -E -o VerboseClass.occ -x c++ VerboseClass.mc /usr/include/c++/4.2/bits/cpp_type_traits.h:118: parse error before `>' /usr/include/c++/4.2/bits/cpp_type_traits.h:123: parse error before `template' /usr/include/c++/4.2/bits/cpp_type_traits.h:363: parse error before `__first' /usr/include/c++/4.2/bits/cpp_type_traits.h:368: parse error before `enum' /usr/include/c++/4.2/bits/cpp_type_traits.h:373: parse error before `template' /usr/include/c++/4.2/bits/stl_relops.h:74: parse error before `std' /usr/include/c++/4.2/bits/stl_relops.h:103: parse error before `<' /usr/include/c++/4.2/bits/stl_relops.h:116: parse error before `<' /usr/include/c++/4.2/bits/stl_relops.h:129: parse error before `<' /usr/include/c++/4.2/bits/stl_relops.h:134: parse error before `}' occ: too many errors fatal error aitor@aitor-laptop:~/Desktop/opencxx-2.8/examples/verbose$ g++: 4.2 I have searched in Internet and there are a person with the same problem Is this problem fixed? If so, how can I use openc++? Thanks. _________________________________________________________________ MSN Noticias http://noticias.msn.es/comunidad.aspx |
From: SF M. E. <el...@us...> - 2007-04-26 07:00:51
|
Hello, Can your implementation and the generated software benefit from this design approach? http://en.wikipedia.org/wiki/Aspect-oriented_programming Would you like to reuse anything from the evolving tools and libraries? 1. http://aspectc.org/ 2. http://wwwiti.cs.uni-magdeburg.de/iti_db/forschung/fop/featurec/ 3. http://www.cs.tut.fi/~ask/aspects/aspects.html 4. http://springpython.python-hosting.com/wiki/AspectOrientedProgramming 5. http://xweaver.org/ Regards, Markus |
From: <se...@in...> - 2007-04-25 07:52:29
|
On Mon, 2007-04-23 at 19:06 +0530, Lazy Land wrote: > Hello all, > > Just a quick problem i'm facing with the command line. > I've built OpenC++ using cygwin, and I'm trying to use the occ > compiler in the command line. > Here's how it goes : > > $ occ -m VerboseClass.mc -I../include > EXECUTING: g++ g++ -D__opencxx -E -o VerboseClass.occ -x c++ VerboseClass.mc > VerboseClass.mc:38:25: opencxx/mop.h: No such file or directory > > I'm using opencxx-2.8, and apparently g++ is not getting the include path. > Has anybody else had this issue ? you do not have given enough clues if you have install or not. The most difficult build should be let suppose your configuration is /home1/p0/opencxx \-- build # where we build the package \-- opencxx28 # where the untar or cvs is from here, obviously the make install command has not been done. We are checking if the thing work before install here we have build from /home1/p0/opencxx/build then /home1/p0/opencxx/build/occ2 is the script used to produce VerboseClass.occ check that in occ2 script we have macro pointing to right place abs_top_builddir=/home1/p0/opencxx/build abs_top_srcdir=/home1/p0/opencxx/build/../opencxx28 from /home1/p0/opencxx/build/examples/verbose directory $ echo $PATH $ export PATH=/home1/p0/opencxx/build:$PATH $ LD_LIBRARY_PATH=/home1/p0/opencxx/build/.libs make VerboseClass.exe should work that should be equivalent to but with added --verbose option to have more details $ occ2 --verbose \ ../../../opencxx28/examples/verbose/VerboseClass.mc \ -o VerboseClass.exe if from cvs, opencxx-2.9 is preferable because we do not add fix to opencxx |
From: Manoj k. <man...@gm...> - 2007-04-24 09:55:25
|
I am getting the same problem........... Can anybody say , is it possible to compile occ Compiler on VC2005. I am struggling from long time..... basically how to replace the fork() and execve() system call with window substitute......... Send the reply soon as i have struck on it... Manoj On 4/24/07, ope...@li... < ope...@li...> wrote: > > Send Opencxx-users mailing list submissions to > ope...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/opencxx-users > or, via email, send a message with subject or body 'help' to > ope...@li... > > You can reach the person managing the list at > ope...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Opencxx-users digest..." > > > Today's Topics: > > 1. Newbie : command line errors (Lazy Land) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 23 Apr 2007 19:06:38 +0530 > From: "Lazy Land" <laz...@gm...> > Subject: [Opencxx-users] Newbie : command line errors > To: ope...@li... > Message-ID: > <10b...@ma...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hello all, > > Just a quick problem i'm facing with the command line. > I've built OpenC++ using cygwin, and I'm trying to use the occ > compiler in the command line. > Here's how it goes : > > $ occ -m VerboseClass.mc -I../include > EXECUTING: g++ g++ -D__opencxx -E -o VerboseClass.occ -x c++ > VerboseClass.mc > VerboseClass.mc:38:25: opencxx/mop.h: No such file or directory > > I'm using opencxx-2.8, and apparently g++ is not getting the include path. > Has anybody else had this issue ? > > Thanks in advance, > CP > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > ------------------------------ > > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > > End of Opencxx-users Digest, Vol 6, Issue 5 > ******************************************* > |
From: Lazy L. <laz...@gm...> - 2007-04-23 13:36:40
|
Hello all, Just a quick problem i'm facing with the command line. I've built OpenC++ using cygwin, and I'm trying to use the occ compiler in the command line. Here's how it goes : $ occ -m VerboseClass.mc -I../include EXECUTING: g++ g++ -D__opencxx -E -o VerboseClass.occ -x c++ VerboseClass.mc VerboseClass.mc:38:25: opencxx/mop.h: No such file or directory I'm using opencxx-2.8, and apparently g++ is not getting the include path. Has anybody else had this issue ? Thanks in advance, CP |
From: Ferdinand P. <Fer...@op...> - 2007-04-16 09:36:51
|
Hello Manoj, I used openc++ to do a testing C++ extension (evaluating the library) and to create a tool processing XML comments (.NET 1 C++ syntax). I used a little patched version 2.7. I had to make it compilable in VC6 and make it understand source code for the managed C++ (well, I made it ignore it, more or less :-). I think I sent the patch here but I am not sure any more because I was very busy that time. I built it in both VC6 and VC71. I suggest you to upgrade to VC71 since VC6 is not supported any more. You can have a look at http://prantl.host.sk/mcppdoc/. There is a compilable package and binaries there. I could help you more with it but I do not have much time to spend on it. I still find openc++ the best tool to integrate for manipulating the source code in spite of some comments in this thread. Unfortunately it seems that the maintainers do not have much time recently and the integration may require some extra work as you found out... Patience brings roses :-) Best regards, Ferda "Manoj kumar" <man...@gm...> Sent by: ope...@li... 15.04.2007 06:26 To ope...@li... cc Subject Re: [Opencxx-users] Opencxx-users Digest, Vol 6, Issue 1 Hi Everybody I didn't get any response what i needed of my query.. I saw some people of group has done the work with OpenC++ on .NET plateform. So pls can't anybody of u help me in how to go from Compiling OpenC++ to Running a simple program on VC6. Thank Manoj On 4/11/07, ope...@li... < ope...@li...> wrote: Send Opencxx-users mailing list submissions to ope...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/opencxx-users or, via email, send a message with subject or body 'help' to ope...@li... You can reach the person managing the list at ope...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Opencxx-users digest..." Today's Topics: 1. installing openc++ on vc6 (Manoj kumar) 2. Re: installing openc++ on vc6 (Stefan Seefeld) ---------------------------------------------------------------------- Message: 1 Date: Tue, 10 Apr 2007 14:59:26 +0530 From: "Manoj kumar" <man...@gm... > Subject: [Opencxx-users] installing openc++ on vc6 To: ope...@li... Message-ID: < 1ad...@ma... > Content-Type: text/plain; charset="iso-8859-1" Hi Currently i am doing a project in which i need to use openc++ for parser and lexer. I have tried to install the main-con.cpp file of *openc++- 2.8 *but there are lot of dependencies . so anyone of u who have done compilation of openc++ on *window *using *vc6*can guide me pls. As i have struct in this.... so i am waiting for response as soon as possible. Thanks...... Manoj -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Tue, 10 Apr 2007 07:07:01 -0400 From: Stefan Seefeld < se...@sy...> Subject: Re: [Opencxx-users] installing openc++ on vc6 To: Manoj kumar < man...@gm...> Cc: ope...@li... Message-ID: < 461...@sy...> Content-Type: text/plain; charset=ISO-8859-1 Manoj kumar wrote: > Hi > Currently i am doing a project in which i need to use openc++ for > parser and lexer. > I have tried to install the main-con.cpp file of *openc++-2.8 *but there > are lot of dependencies . > so anyone of u who have done compilation of openc++ on *window *using > *vc6* can guide me pls. > As i have struct in this.... so i am waiting for response as soon as > possible. Can you describe what you want to do with the parser ? I haven't built openc++ on windows, but I have been working on a quite similar project (synopsis; http://synopsis.fresco.org), which I successfully compile for windows (using gcc -mno-cygwin), and which then works happily with VC6. HTH, Stefan -- ...ich hab' noch einen Koffer in Berlin... ------------------------------ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ------------------------------ _______________________________________________ Opencxx-users mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/opencxx-users End of Opencxx-users Digest, Vol 6, Issue 1 ******************************************* ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/_______________________________________________ Opencxx-users mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/opencxx-users |
From: Manoj k. <man...@gm...> - 2007-04-15 04:26:59
|
Hi Everybody I didn't get any response what i needed of my query.. I saw some people of group has done the work with OpenC++ on .NET plateform. So pls can't anybody of u help me in how to go from Compiling OpenC++ to Running a simple program on VC6. Thank Manoj On 4/11/07, ope...@li... <ope...@li...> wrote: > > Send Opencxx-users mailing list submissions to > ope...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/opencxx-users > or, via email, send a message with subject or body 'help' to > ope...@li... > > You can reach the person managing the list at > ope...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Opencxx-users digest..." > > > Today's Topics: > > 1. installing openc++ on vc6 (Manoj kumar) > 2. Re: installing openc++ on vc6 (Stefan Seefeld) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 10 Apr 2007 14:59:26 +0530 > From: "Manoj kumar" <man...@gm...> > Subject: [Opencxx-users] installing openc++ on vc6 > To: ope...@li... > Message-ID: > <1ad...@ma... > > Content-Type: text/plain; charset="iso-8859-1" > > Hi > Currently i am doing a project in which i need to use openc++ for parser > and lexer. > I have tried to install the main-con.cpp file of *openc++- 2.8 *but there > are lot of dependencies . > so anyone of u who have done compilation of openc++ on *window *using > *vc6*can guide me pls. > As i have struct in this.... so i am waiting for response as soon as > possible. > Thanks...... > Manoj > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Tue, 10 Apr 2007 07:07:01 -0400 > From: Stefan Seefeld < se...@sy...> > Subject: Re: [Opencxx-users] installing openc++ on vc6 > To: Manoj kumar <man...@gm...> > Cc: ope...@li... > Message-ID: <461...@sy...> > Content-Type: text/plain; charset=ISO-8859-1 > > Manoj kumar wrote: > > Hi > > Currently i am doing a project in which i need to use openc++ for > > parser and lexer. > > I have tried to install the main-con.cpp file of *openc++-2.8 *but there > > are lot of dependencies . > > so anyone of u who have done compilation of openc++ on *window *using > > *vc6* can guide me pls. > > As i have struct in this.... so i am waiting for response as soon as > > possible. > > Can you describe what you want to do with the parser ? > > I haven't built openc++ on windows, but I have been working on a quite > similar project (synopsis; http://synopsis.fresco.org), which I > successfully > compile for windows (using gcc -mno-cygwin), and which then works happily > with > VC6. > > HTH, > Stefan > > -- > > ...ich hab' noch einen Koffer in Berlin... > > > > ------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------ > > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > > End of Opencxx-users Digest, Vol 6, Issue 1 > ******************************************* > |
From: Stefan S. <se...@sy...> - 2007-04-11 12:43:52
|
Manoj kumar wrote: > Hi, > In my project , i want to use meta - class which will do source to > source translation . > Basically i need to add some function in my program to do task like > saving and restoring the class object . And this should be done at > compile time . > For this i need to use the openc++ compiler. As i am working on window > plateform and using vc6 , i have to compile openc++ on vc6 only so that > there should be any dependencies on other program. Compiling openc++ and using it with an external compiler are two distinct things. It may be easier to try to compile openc++ with the mingw compiler (i.e. gcc) than with VC6, but you certainly need to call cl.exe from occ. I'm not sure how hard the latter is, or whether it's possible at all. Unfortunately, while Synopsis works fine in this environment, it currently doesn't support source-to-source translation the same way openc++ does (instead, it hands users back the parse tree which they are supposed to traverse and translate themselves). So I'm not sure how useful that would be for your purposes. HTH, Stefan -- ...ich hab' noch einen Koffer in Berlin... |
From: Stefan S. <se...@sy...> - 2007-04-10 11:07:09
|
Manoj kumar wrote: > Hi > Currently i am doing a project in which i need to use openc++ for > parser and lexer. > I have tried to install the main-con.cpp file of *openc++-2.8 *but there > are lot of dependencies . > so anyone of u who have done compilation of openc++ on *window *using > *vc6* can guide me pls. > As i have struct in this.... so i am waiting for response as soon as > possible. Can you describe what you want to do with the parser ? I haven't built openc++ on windows, but I have been working on a quite similar project (synopsis; http://synopsis.fresco.org), which I successfully compile for windows (using gcc -mno-cygwin), and which then works happily with VC6. HTH, Stefan -- ...ich hab' noch einen Koffer in Berlin... |
From: Manoj k. <man...@gm...> - 2007-04-10 09:29:28
|
Hi Currently i am doing a project in which i need to use openc++ for parser and lexer. I have tried to install the main-con.cpp file of *openc++-2.8 *but there are lot of dependencies . so anyone of u who have done compilation of openc++ on *window *using *vc6*can guide me pls. As i have struct in this.... so i am waiting for response as soon as possible. Thanks...... Manoj |
From: Scott D. F. <sd...@ms...> - 2006-11-18 03:48:55
|
Hi Gilles, > > I've been unable to use OpenC++ with gcc 4.x. OpenC++'s parser barfs > > on some of the standard headers. > > see > from: Gilles J. Seguin > subject: "make check" fail on branch rel_2_9 with gcc 4.0.1 in C++ > headers > Date: > Thu, 20 Oct 2005 06:03:37 -0400 I looked at the email exchange you cite above, and I see that it describes the problem with gcc 4 that I encountered. However, I don't see a solution described. > i am 4.1.1 and working What version of OpenC++ are you using? If it's the version in the CVS repository, would you mind posting a new snapshot to the OpenC++ homepage? Also, if you do add a new snapshot, you might also add an entry to the news section of OpenC++ homepage. I think it would help direct new users to the version that will give them the best results. > > I do have it working with gcc 3.x. > > Although, I have hacked the parser a bit to get it to work, and the > > latest OpenC++ cvs snapshot may not have similar patches applied to > > it. > > I can add contributed patches to branches rel_2_9 If you have a version of OpenC++ that works with gcc 4.1.1, I suspect my patches are no longer necessary. If I find it otherwise, I will let you know. Thanks, Scott |
From: <wu...@gm...> - 2006-11-17 10:13:29
|
Hi Scott, 2006/11/16, Scott D. Fleming <sd...@ms...>: > > OpenC++ hard codes the name of the compiler "g++" into its source as a > string. Before you compile OpenC++, you will need to find that string > and replace it with the correct command name for your version. I can't > recall if there are any other difficulties with getting this sort of > setup to work, but there may very well be. That helped me. grep '"g++"' -r . Did found the source files with g++ hardcoded and after that I changed them. -- Emilio Wuerges LAPS - Laboratorio de Automacao de Projeto de Sistemas UFSC - Universidade Federal de Santa Catarina Brasil |
From: <se...@in...> - 2006-11-17 07:19:08
|
On Thu, 2006-11-16 at 16:57 -0500, Scott D. Fleming wrote: > Hi Emilio, > I've been unable to use OpenC++ with gcc 4.x. OpenC++'s parser barfs > on some of the standard headers. see from: Gilles J. Seguin subject: "make check" fail on branch rel_2_9 with gcc 4.0.1 in C++ headers Date: Thu, 20 Oct 2005 06:03:37 -0400 i am 4.1.1 and working > I do have it working with gcc 3.x. > Although, I have hacked the parser a bit to get it to work, and the > latest OpenC++ cvs snapshot may not have similar patches applied to > it. I can add contributed patches to branches rel_2_9 > You may want to install multiple versions of gcc on your system, > having the latest/greatest as your default and using an older version > with OpenC++. On Debian-based systems (e.g. Ubuntu), they offer > different gcc version packages. For the older versions, the commands > are appended with "-version"; for example, "gcc" becomes "gcc-3.3". > When you build OpenC++ by hand, you can pass configure options that > tell it to use the older version of gcc. There is a catch, though. > OpenC++ hard codes the name of the compiler "g++" into its source as a > string. Before you compile OpenC++, you will need to find that string > and replace it with the correct command name for your version. I can't > recall if there are any other difficulties with getting this sort of > setup to work, but there may very well be. > > Good luck! > Cheers, Scott |
From: <se...@in...> - 2006-11-17 05:34:30
|
On Thu, 2006-11-16 at 09:50 -0200, Em=C3=ADlio Wuerges wrote: > Hi to All, >=20 > My problem is simple: > I need to parse a header file, search for classes declaration with > virtual methods and print their signature. > I searched for an example in OpenC++ documentation and this list with > no results. in Reference Manuel paragraph 8.1 Introspection, for me it is page 45 bool IsVirtual() bool IsPureVirtual() > Can someone give me a clue? > Can OpenC++ do it? >=20 > After that, I would like to add a few members, remove some and output > a refactored C++ code. > Can OpenC++ still do it? see 7.4 Translation and 7.4.1 Class Definition should provide enough for what you describe see AppendMember(...) > Tx for your time, |
From: Scott D. F. <sd...@ms...> - 2006-11-16 21:57:12
|
Hi Emilio, I've been unable to use OpenC++ with gcc 4.x. OpenC++'s parser barfs on some of the standard headers. I do have it working with gcc 3.x. Although, I have hacked the parser a bit to get it to work, and the latest OpenC++ cvs snapshot may not have similar patches applied to it. You may want to install multiple versions of gcc on your system, having the latest/greatest as your default and using an older version with OpenC++. On Debian-based systems (e.g. Ubuntu), they offer different gcc version packages. For the older versions, the commands are appended with "-version"; for example, "gcc" becomes "gcc-3.3". When you build OpenC++ by hand, you can pass configure options that tell it to use the older version of gcc. There is a catch, though. OpenC++ hard codes the name of the compiler "g++" into its source as a string. Before you compile OpenC++, you will need to find that string and replace it with the correct command name for your version. I can't recall if there are any other difficulties with getting this sort of setup to work, but there may very well be. Good luck! Cheers, Scott On 11/16/06, Em=EDlio Wuerges <wu...@gm...> wrote: > Hi everyone, > > How should I procced to use openc++ with gcc 4.0? > > -- > Emilio Wuerges > LAPS - Laboratorio de Automacao de Projeto de Sistemas > UFSC - Universidade Federal de Santa Catarina > Brasil > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > > |
From: Stefan S. <se...@sy...> - 2006-11-16 19:21:22
|
Emílio Wuerges wrote: > Hi everyone, > > How should I procced to use openc++ with gcc 4.0? Can you elaborate what you mean with 'use with gcc 4.0' ? Are you looking for ways to compile openc++ with gcc 4.0 ? Or Use openc++ with gcc 4.0 system headers (i.e. when processing your own code with it) ? Openc++ should probably compile fine with any version of gcc, but I believe the libstdc++ version that ships with gcc 4.0 contains constructs that openc++'s parser can't handle (that's what I alluded to in my previous mail). Regards, Stefan -- ...ich hab' noch einen Koffer in Berlin... |
From: <wu...@gm...> - 2006-11-16 19:05:17
|
Hi everyone, How should I procced to use openc++ with gcc 4.0? -- Emilio Wuerges LAPS - Laboratorio de Automacao de Projeto de Sistemas UFSC - Universidade Federal de Santa Catarina Brasil |
From: Stefan S. <se...@sy...> - 2006-11-16 14:46:07
|
Emílio Wuerges wrote: > Hi to All, > > My problem is simple: > I need to parse a header file, search for classes declaration with > virtual methods > and print their signature. > I searched for an example in OpenC++ documentation and this list with no > results. > > Can someone give me a clue? > Can OpenC++ do it? Probably. > After that, I would like to add a few members, remove some and output a > refactored C++ code. > Can OpenC++ still do it? Also probably. (It depends on your C++ code: OpenC++ has some trouble with more modern C++ constructs, so depending on your code it may do well or just fall over.) In case you don't get the answer you are looking for here, you may consider using synopsis instead (http://synopsis.fresco.org), which provides that functionality too. (Its C++ parser started as a fork of OpenC++ many years ago.) As I'm the main developer there, I may be able to help you with that. Regards, Stefan -- ...ich hab' noch einen Koffer in Berlin... |
From: <wu...@gm...> - 2006-11-16 11:50:48
|
Hi to All, My problem is simple: I need to parse a header file, search for classes declaration with virtual methods and print their signature. I searched for an example in OpenC++ documentation and this list with no results. Can someone give me a clue? Can OpenC++ do it? After that, I would like to add a few members, remove some and output a refactored C++ code. Can OpenC++ still do it? Tx for your time, Emilio Wuerges LAPS - Systems Project Automation Laboratory UFSC - Federal University of Santa Catarina Brazil |
From: Stefan S. <se...@sy...> - 2006-09-09 13:59:27
|
Andrey, could you please provide a *complete* test case that lets me easily reproduce the failure. This should contain: * all files I need (your main.cpp, simple.cpp) * complete build instructions * the expected result, as well as the actual result I can of course guess all of this myself, but it takes up valuable time that I could better spend actually fixing the bug you are reporting. Thanks, Stefan -- ...ich hab' noch einen Koffer in Berlin... |
From: Andrey K. <kar...@li...> - 2006-09-09 10:33:22
|
> This sounds like a bug that is easy to fix. I would describe this situation in-depth. Let's look on OpenCXX code: Ptree* ClassWalker::TranslateAssign(Ptree* exp) { using namespace PtreeUtil; Ptree *left, *left2, *right, *right2, *exp2; Environment* scope; Class* metaobject; TypeInfo type; left = First(exp); right = Third(exp); if (left->IsA(ntDotMemberExpr) || left->IsA(ntArrowMemberExpr)) { Ptree* object = First(left); Ptree* op = Second(left); Ptree* member = Third(left); Ptree* assign_op = Second(exp); Typeof(object, type); if(!Eq(op, '.')) type.Dereference(); metaobject = GetClassMetaobject(type); } ... } GetClassMetaobject() function return NULL for non template class (from first letter). It's work that: Class* ClassWalker::GetClassMetaobject(TypeInfo& tinfo) { Class* c; if(tinfo.IsClass(c)) return c; else if(tinfo.IsReferenceType()){ tinfo.Dereference(); if(tinfo.IsClass(c)) return c; } return 0; } In this code tinfo.IsClass(c) return false, because translating template class. In result GetClassMetaobject() return 0 and lookup class member type is impossible (environment is absent). See code for lookup type in first letter. > Can you describe exactly what program / command line you used ? occ-core > doesn't appear to contain (or generate) an 'occ' executable. I write own executable with main() like this: int main() { std::ifstream stream; char* filename = "simple.cpp"; stream.open(filename); ProgramFile program(stream, filename); Lex lexer(&program); ErrorLog &errorLog = TheErrorLog(); Parser parser(&lexer, errorLog); Ptree* ptree = 0; ClassWalker walker(&parser); while (parser.rProgram(ptree)) walker.Translate(ptree); } |
From: Stefan S. <se...@sy...> - 2006-09-08 18:22:57
|
?????? ?????? wrote: > But for template class metaobject is NULL. > How i can get [int] for template class? This sounds like a bug that is easy to fix. > P.S. I use occ-core-20050912.tar.gz. Can you describe exactly what program / command line you used ? occ-core doesn't appear to contain (or generate) an 'occ' executable. (Sorry, I'm not very familiar with the current occ build procedure. It has been a while...) Regards, Stefan PS: FWIW, the occ-core-20050912.tar.gz package's files have the wrong (DOS) line endings, meaning that the build instructions in BUILDING don't work (bash fails) unless I run dos2unix over the whole thing. -- ...ich hab' noch einen Koffer in Berlin... |
From: <kar...@li...> - 2006-09-08 16:44:11
|
Please help my with template translating. I know that template support in OpenCXX incomplete, but i need simple thing. For example we want process next code: template<class T> class MyClass { int member; }; void main() { MyClass<float> object; object.member = 1; } How we find out that type of (object.member) is "int" ? I try next approach: Ptree* ClassWalker::TranslateAssign(Ptree* exp) { ................. metaobject = GetClassMetaobject(type); if (metaobject != NULL) { TypeInfo memberType; Environment *metaobjectEnv = metaobject->GetEnvironment(); if (metaobjectEnv != NULL) { if (metaobjectEnv->Lookup(member, memberType)) { Ptree *typeName = memberType.FullTypeName(); if (typeName != NULL) typeName->Display(); } } } ................. } For non template class like this class MyClass { int member; }; void main() { MyClass object; object.member = 1; } on display we get [int] But for template class metaobject is NULL. How i can get [int] for template class? P.S. I use occ-core-20050912.tar.gz. |
From: Scott D. F. <sd...@ms...> - 2006-08-08 14:50:57
|
Hi, I am having a spot of trouble translating C function declarations (ones without a definition, that is). Consider the following simple program foo.cc and metaclass TransCFunc: int foo( int x = 5 ); int main() {...} int foo( int x ) {...} ////////////////////////////////////////////////////////////////////// char* const DEFAULT_METACLASS = "TransCFunc"; class TransCFunc : public Class { public: static bool Initialize(); ... void TranslateClass( Environment* env ); void TranslateMemberFunction( Environment* env, Member& m ); }; // class TransCFunc bool TransCFunc::Initialize() { ChangeDefaultMetaclass(DEFAULT_METACLASS); SetMetaclassForFunctions(DEFAULT_METACLASS); return true; } void TransCFunc::TranslateClass( Environment* env ) { cout << "CLASS: " << Name()->ToString() << endl; } void TransCFunc::TranslateMemberFunction( Environment* env, Member& m ) { cout << "MEMBER: " << Name()->ToString() << "::" << m.Name()->ToString() << endl; } Running a compiler generated from TransCFunc on foo.cc gives the output: MEMBER: <C>::main MEMBER: <C>::foo I would have expected TranslateMemberFunction() to get called for the first foo() declaration, but this does not seem to be the case. Anyone know how I can get it to translate? Thanks, Scott |
From: skaller <sk...@us...> - 2006-07-25 16:34:01
|
On Tue, 2006-07-25 at 10:14 -0400, Stefan Seefeld wrote: > Gilles J. Seguin wrote: > > On Mon, 2006-07-24 at 14:53 -0400, Stefan Seefeld wrote: > >> skaller wrote: > >>> On Mon, 2006-07-24 at 14:14 -0400, Stefan Seefeld wrote: > >>>> skaller wrote: > > [...] > >>> In other words it generates an actual parse tree, rather than > >>> an abstract syntax tree? > > > > the "rather" may mislead, the parse tree is an augmented AST. > > Well, considering how both representations are actually built, > I would phrase it differently. You don't generate a parse tree > from an AST by adding to it, but rather, you create an AST by > removing ('abstracting away') things from the parse tree. Of course I use the term AST loosely :) In theory it is a representation in abstract syntax which has specific mathematical properties which few production parser ASTs actually have. > Ideally, the tool can generate multiple representations, and let users > control the processing pipeline, and only build the representation required > for a particular task. Of course this is very easy to do in functional language using folds .. -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net |