ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Request inputs on how to see the parsing of flex program, by its parser.
The file here seems need be looked for clue, but unable to find which part to look into.
By parsing, mean the specific format in which a flex file is organised, and the yywrap(), yylex() functions as used specific to flex.
My post asked about the actual code parsing the flex file, including the yywrap(), yylex() functions as used in flex file.
Also, can you please kindly tell what is causing the error, in the given post; as am unable to find the exact token in the input.txt file, where the error occurred.
Sorry, what exactly the question is? (If it is "who is willing to explain me in details the working of flex program?" then I am not voluntering.)
Please take the question as the second part, i e.:
Also, can you please kindly tell what is causing the error, in the given post; as am unable to find the exact token in the input.txt file, where the error occurred.
Next, the code for implementation of the functions specific to flex, i.e. yymore(), yywrap(), yylex(), is found now here.
But, assume that the flex would have been created much before the C++ was created, hence there must be a C implementation of flex too.
Request some link for the same.
Sorry, but if could please detail how to run on cygwin platform, then would be highly thankful.
Actually, the problem was there since you posted it; but failed to muster courage (to ask); & could muster only on the need for following the same approach is given in the link here. The link is derived from the course page here.
The code for the book (preface, code (though in the earlier course web-page too)) followed by the course is also given here.
Am unsure of how much seriously I am being taken of by you, but would still venture to go further by requesting on how to run the code (for the same project, as the stated book) here.
I hope that with your kind help, the next semester would see me helping my students, in building a compiler in far better way than before.
Sorry, as didn't put efforts on my own, but seem to be confused more, and wanted to end the stalemate; rather than not providing any useful inputs to students, the next semester too.
--------------
P.S.: Want to add that have used make files for simpler uses, than specified here; and cannot hence progress.
Am unsure of how much seriously I am being taken of by you, but would still venture to go further by requesting on how to run the code (for the same project, as the stated book) here.
I hope that with your kind help, the next semester would see me helping my students, in building a compiler in far better way than before.
For me it is not really acceptable. You are trying to teach your students something that you have no idea what it is. How can it be taken seriously? How seriously do you take your own students?
The best thing you can do is to learn it.
But you wrote:
Quote:
Originally Posted by ajiten
Sorry, as didn't put efforts on my own, but seem to be confused more, and wanted to end the stalemate; rather than not providing any useful inputs to students, the next semester too.
What definitely won't work is gathering information here (or wherever) for the next semester and waiting for a miracle to at least make it seem like it will work.
But at least you started to ask, which is a good thing. Now you need to understand it too (that will end the stalemate).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.