Click to See Complete Forum and Search --> : Yacc and Lex in Visual C++ ??
April 29th, 1999, 09:42 AM
Hi,
I want to create a kind of compilator. I know how to do that in C language with a yacc and a lex. However how can i do that in Visual C++ ??
Thanks for your help.
Best regards.
Steph.
Nicola
April 29th, 1999, 09:53 AM
Hello Steph! I really like your problem because it has been something I have been resolving the last year! Where I work had to build up a compiler for ANSI C language so that we decided to use Lex and Yacc..But in Visual C++ is quite a problem seen that we needed classes implementing the same stuff. We have created Lex.exe and Yacc.exe in order to create VC++ classes as output. Now I can't tell you more because I have all this stuff at home. I let you ma e-mail if you are interested to knoew more. I can give you these files you can use : ngenchi@esa.esrin.it
April 29th, 1999, 10:03 AM
Here is a good lex/yacc for Win32 platform: http://www.cix.co.uk/~phil-stearns/
Goo luck!! Bye!!
Alvaro
April 29th, 1999, 10:42 AM
Search the web for a product called "Visual Parse++". I hear it's pretty good for what you want to do.
Have fun!
Alvaro
Dieter Fauth
May 1st, 1999, 04:01 AM
Hi,
You can use GNU FLEX and Bison.
For flex you need to fix the skeleton file (or ask me for mailing it to you). Bison works out of the shelf.
Both the lexer and the parser are simple function calls as you know from Yacc anf Lex. Works with renaming the files to CPP. Even a CString can be handled from Bison...
There are also flex++ and bison++, but I had not the time to test them.
I used FLex and Bison since VC++ V1.0 and I'm really happy with it (now having VC++ V5.0, no 6 yet)
.
Dieter Fauth :-)
pkraman
May 1st, 1999, 04:22 AM
hi,
i have been working in this for the past one year. if you want to develop the compiler in C++ in Windows Environment, you can use PCCTS - Purdue Compiler Construction Tool Set. this is really good and this is freeware. you can get it at www.antlr.org. you can create Abstract Syntax Trees for the Grammar that you have parsed. if you need any help on this, mail me. my mail id is pkraman@usa.net
Good Luck,
Kalyan
Hi,
Could you mail me FLex and Bison, and FLex++ and Bison++ at debono@immunotech.fr.
I have VC++ 5.0. I will use it so if you can mail it to me fast, it will be very helpful.
Danke schön Dieter. Ich spreche ein bissen Deutsch !
Stéphane :-)
Dieter Fauth
May 4th, 1999, 05:24 AM
Hi Stéphane,
here is the skeleton file you need for using FLEX with MSVC.
Please get the program files and docu from the various GNU sources (I guess Flex newst vesion is 2.5.4 and Bison is 1.25).
Oh, Sorry, attachments do not work here !?? Send me a private mail to code guru with you e-mail address.
Many regards,
Dieter Fauth :-)
March 27th, 2000, 08:04 AM
Could you please mail me a copy of those files? The address is:
jzhang2k@hotmail.com
Thank you in advance.
Jessie
Sam Hobbs
March 27th, 2000, 01:37 PM
I think that the company web site for Visual Parse++ is: http://www.sand-stone.com
There is a message in the comp.compilers newsgroup about Visual Parse++ at: http://www.iecc.com/comparch/article/96-05-145
The comp.compilers newsgroup is at: http://www.iecc.com/compilers/
The Journal of C Language Translation looks interesting at: http://jclt.iecc.com/
Sam Hobbs
March 27th, 2000, 01:42 PM
The Parser Generator (http://www.cix.co.uk/~phil-stearns/) has moved to the Bumble-Bee Software homepage at: http://www.bumblebeesoftware.com/
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.