Re: [quirks-uvm-devel] problem while creating parser file
Status: Pre-Alpha
Brought to you by:
teodor
From: Sergei L. <se...@mo...> - 2002-04-09 19:56:36
|
Hello Bhavani, > The previous problem while creating grammer file > is version diffrence. I used different versions of > bison.simple. Oh, it is my guilt! I've forget put all necessary files in the package. Sorry, because it has taken your time. The best way to avoid problems of such type is installing cygwin: http://sources.redhat.com/cygwin/ (you can choose only necessary package, i.e. bison and flex. They contains all needed files like bison.simple etc). > At this point I came to know that whatever parser file > created in the existing workspace is with bison 1.32. > where as I am using bison 1.34. Well, I use 1.32 because it included in the distribution of Linux I use. I've checked and all worked well under 1.34. But I will try update my bison to 1.34 to avoid unnecessary problems in a future. > I got some problems while creating parser file. so I > am modifying the parser1.ys. Just I would like to > discuss with you about the task that is assigned to > me. > can I change the parser.y file if I get errors. or do > you think I should be in a position to generate > lexer.c and parser.c files without changing any of the > *.l and *.y files? Hm... The tale about our *.y and *.l files is that they are generated and no one should modify they. May be it is ugly, but it is the only method I can found: We have common parts, they lay in lib/uvm. When we create grammar files we glue 3 parts: parser1.ys + parser_cmn.ys + parser2.ys and get parser.y. And the same with lexer.l. Thus, the true way is change *.ys and *.ls and don't change *.y and *.l - they should be assembled in the custom build step you will provide. But I think you already know it. Well, you, of course, can change these files (*.ys, *.ls) if there are problems with build. > > Please let me know. sorry for rising questions too > late. I am trying my best to complete it in time. Really you shown good ability of resolving problems. Don't worry about terms I've picked in a task. We are working with such agreement: Anybody of us can make new task and can change task if I've assigned it. Because our work is voluntary and I don't know about how much free time you will have for working for this project all terms are tentative. But we need to know these terms, so it is your right change terms after I've assigned a task, and I will see when YOU plan finish it. But it is bad practice change it at the end of this time interval, so try plan/change tasks such way that you will be able finish it according to your own plan. You can change tasks when you are logged in on SourceForge through you personal page (you may be know about it). When you will change a task I will get a notification. Also, the good practice is update percent of completion in assigned tasks. I invite you follow these rules. > I did n't get any problems with lexer file. OK. Hope hear you soon. -- Sergei |