I want to build a parser to compile, link, and run in an 8051 microcontroller using Keil's uVision/51. Has anybody out there done this before? Spencer Doidge...
I certainly haven't.. I think that you'll have fun porting C to that platform. What chip is that? Wilbur ... Putting A Human Face On Technology ;-) ... ...
One of the chips is the Cypress EZ-USB. I'm having a problem with the FILE macro. My system's <stdio.h> doesn't define that. I can't override FILE with my own...
Hello all, Is it possible to parse statments from stdin using flex/bison in win32? All the examples you guys have are parsing from files. I have tried this...
It might be the end of line character that isn't hitting.. Wilbur ... Putting A Human Face On Technology ;-) ... Literally! http://www.TheFaceOf.com...
I tried eating the newline char, and I tried sending it to bison as part of the parse(grammar). Both did not work. Do you have any code where you used stdin...
Hi, I have been using flex and bison for some time now, and I've been able to create some rather extensive parsers in a unix environment with gcc. I've been...
But I think on the console it's not newline, but rather carriage return.. not 10 by rather 13 ... Wilbur ... Putting A Human Face On Technology ;-) ... ...
The port that I've done has never had a problem with the files being compiled on linux.. http://www.monmouth.com/~wstreett/lex-yacc/lex-yacc.html I don't...
This is probably an unacceptable solution, but when I develop parsers for C++ builder, I just comment out the call to #include <unistd.h>, and all works fine....
Martin Grogan
groganm@...
Feb 6, 2003 11:58 am
1485
Yu have to comment everytime yu generate cpp files. Instead of doing that, yu can create a dummy unistd.h header file & put it in standard headers directory, ...
Channaveeraya Matada
Channaveeraya.WM@...
Feb 6, 2003 12:03 pm
1486
Since bison lets you put your own #defines and such at the top of your output .c file, it was easy to port to with my oddball microcontroller. I didn't find a...
In this case it's the Cypress EZ-USB 8051 microcontroller. I don't know what the next one is, because the data sheet isn't here right now. It will be some...
Fantastic! Can I build it in MS Visual C++ 6.0? ... in there.. ... here ... extreme ... gone ... would ... just ... <Wilbur@T...> ... of ... I'm ... ...
You should be able to .. it was ported in MSVC 5.0 I'll send you the source directly, rather than to the list. Wilbur ... Putting A Human Face On Technology...
You can find on the internet free C cross compilers for 8051 ( and also Basic compilers ). To write a new one may be a difficult task , but surre it is also an...
Hi, I have C grammer files and lex specifications. I have started using flex and bison just a few days ago. I have generated lex.yy.c and parser_tab.c files...
ATUL, Try adding a simple yyerror function in your main file. e.g. yyerror(char *s) { printf("Error %s\n",s); } I'm really surprised you have gone as far as...
Hi Mike, I tried doing it. It did compile properly but tlink couldnt link it. The linker is now giving errors : "unknown symbol _lineno" Theres one more error...
Hi Mike, I tried doing it. It did compile properly but tlink couldnt link it. The linker is now giving errors : "unknown symbol _lineno" Theres one more error...
Hi Mike, I tried doing it. It did compile properly but tlink couldnt link it. The linker is now giving errors : "unknown symbol _lineno" Theres one more error...
Hello everyone -- I'm trying to get Flex to generate a Lexical Analyzer for the LexByLex sample code from the Grune Modern Compiler Design course for my course...
Ray Schneider
schneirj@...
Feb 8, 2003 8:41 pm
1500
Sadly, Wilbur, lex fails for lack of portability. Specifically, the use of FILE and its fields, ties the program to UNIX. Rewriting the code to make i/o more...