| | |
Visual C++ and Lex/Yacc
![]() |
I want to write a parser for C++ which can extract methods and members pertaining to a particular class(es) in a CPP file. I used Parser Generattor tool by BumbleBee softwares and did all the project settings as required by them but still keep on getting fatal errors in Exception Class(of Visual Studio 6 Library).
Is there a proper tool wherein I can integrate lex and yacc with VC++ 6.0.
Urgent Help Required. Please help
Is there a proper tool wherein I can integrate lex and yacc with VC++ 6.0.
Urgent Help Required. Please help
Regards
Shouvik
Shouvik
Why not code in linux/unix env?
Well the problem is not with Bumblebee. When I used a sample project from SampleCodeForLex/Yacc then also I faced the same error as mentioned below.
error C2440: '=' : cannot convert from 'struct _iobuf *' to 'class std::basic_istream<char,struct std::char_traits<char> > *'
for the code line
lexer is the object of the class CLexRC wherein CLexRC loks like this in first line of the class
please help.
error C2440: '=' : cannot convert from 'struct _iobuf *' to 'class std::basic_istream<char,struct std::char_traits<char> > *'
for the code line
FILE *temp,
*f;
lexer.yyin = f;lexer is the object of the class CLexRC wherein CLexRC loks like this in first line of the class
class YYEXPLEXER YYFAR CLexRC : public _YL yyclexer {please help.
Regards
Shouvik
Shouvik
It's assigning an uninitialized FILE* to another value? There's something wrong with that picture. Anyway, it looks like the yyin member is of type std::basic_istream<char, struct std::char_traits<char> >*, and the code is trying to assign a FILE* to it. At least, that's what the error message says.
All my posts may be redistributed under the GNU Free Documentation License.
I'm now able to run lex files fine but while utilizing the yacc stack descriptors like '$$' it is giving the following error:
warning Y4003: '$$' : attribute is untyped
thought this is a warning now. If I'm assigning anything to it or trying to use string copy then it is throwing an error.
please help.
warning Y4003: '$$' : attribute is untyped
thought this is a warning now. If I'm assigning anything to it or trying to use string copy then it is throwing an error.
please help.
Regards
Shouvik
Shouvik
![]() |
Similar Threads
- lex + yacc help (Computer Science)
- lex yacc ??? (IT Professionals' Lounge)
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: Symbol Table
- Next Thread: running wpa on 2k
| Thread Tools | Search this Thread |
1gbit advertising advice amazon answers archive british broadband business businessprocesses career carrier censorship cern china cio collectiveintelligence connectivity consumer consumers corporateearnings datatransfer debtcollectors dictionary digg digital ebay ecommerce email employment environment facebook food government grid high-definition hottub infodelivery infotech intel internet interview ipod isp japan kindle lhc library malware marketing mit moonfruit news onlineshopping piracy piratebay pope porn program questions r&d religion remoteworking research retail security sex shopping simple skype smallbusiness smb sms socialmedia socialnetworking software softwareengineer spam speed spending startrek statistics stocks study stumbleupon survey tabletpc technology touch-screen touchscreen twitter uk videoinprint voips web webdeveloper windows words






