Re: simple Flex program?
Alexandru <[email protected]> Wed, 19 Apr 2006 04:28:30 -0700 (PDT)
| Newsgroups | gmane.comp.lex.flex.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1504460849== Content-Type: multipart/alternative; boundary="0-250670427-1145446110=:81130" Content-Transfer-Encoding: 8bit --0-250670427-1145446110=:81130 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit The project is to be done in C++ and Flex. It is for a course of Finite Language Automata but unfortunately Flex information has been very little. So it has no practical use...just to test our skills. Which I lack :( Do you have anything that does a similar search so I can modify the flex code and get the job done? Thanks, Alex Hans-Bernhard Br�ker <[email protected]> wrote: Alexandru wrote: > I'm totally new to flex and just received a project that is due in a few > days. I want to ask you if it is a hard one to solve and if anyone can > give me some help. This is almost guaranteed to be impossible to do in *any* time frame by a newbie. For starters, the job is basically impossible to do with flex alone. C syntax can't be captured by regular expressions alone. By the time you're able to finish this task, you'll no longer be a (f)lex newbie, and it'll take a lot more than just a couple days to get there. > Give one ore more C files.For each file generate a txt file containing > the functions found in the C files and for each function : its type, its > name, the nomber of parameters and their name. Why anyone would want to know the *names* of a C function's formal parameters evades me. Those generally mean nothing. The only thing that really counts is their type. > So? Is it hard or has anyone done something like this already? cxref exists. --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --0-250670427-1145446110=:81130 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit The project is to be done in C++ and Flex. It is for a course of Finite Language Automata but unfortunately Flex information has been very little. So it has no practical use...just to test our skills. Which I lack :(<br> Do you have anything that does a similar search so I can modify the flex code and get the job done? Thanks,<br> Alex<br><br><b><i>Hans-Bernhard Br�ker <[email protected]></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Alexandru wrote:<br>> I'm totally new to flex and just received a project that is due in a few <br>> days. I want to ask you if it is a hard one to solve and if anyone can <br>> give me some help. <br><br>This is almost guaranteed to be impossible to do in *any* time frame by <br>a newbie. For starters, the job is basically impossible to do with fl ex <br>alone. C syntax can't be captured by regular expressions alone. By the <br>time you're able to finish this task, you'll no longer be a (f)lex <br>newbie, and it'll take a lot more than just a couple days to get there.<br><br>> Give one ore more C files.For each file generate a txt file containing <br>> the functions found in the C files and for each function : its type, its <br>> name, the nomber of parameters and their name.<br><br>Why anyone would want to know the *names* of a C function's formal <br>parameters evades me. Those generally mean nothing. The only thing <br>that really counts is their type.<br><br>> So? Is it hard or has anyone done something like this already? <br><br>cxref exists.<br><br></blockquote><br><p> <hr size=1><a href="http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com">Yahoo! Messenger with Voice.</a> PC-to-Phone calls for ridiculously low rates. --0-250670427-1145446110=:81130-- --===============1504460849== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-flex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-flex --===============1504460849==--