From: buers AT gmx DOT de (Dieter Buerssner) Newsgroups: comp.os.msdos.djgpp Subject: Re: Bison and Flex Date: 25 Apr 2000 16:07:49 GMT Lines: 22 Message-ID: <8e4n28.3vs5g7n.0@buerssner-17104.user.cis.dfn.de> References: <3905cbc4 DOT 0 AT news2 DOT cluster1 DOT telinco DOT net> NNTP-Posting-Host: pec-116-34.tnt8.s2.uunet.de (149.225.116.34) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 956678869 8986189 149.225.116.34 (16 [17104]) X-Posting-Agent: Hamster/1.3.13.0 User-Agent: Xnews/03.02.04 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Liam wrote: >I'm interested in writing a simple preprocessor/assembler for experience >using bison and flex but find it difficult to get them behaving >correctly. I was wondering if there are any examples of simple >bison/flex code available? Ones that could easily be understood that say >just implement a few rules. You might have already looked at the bison manual. If yes, you can as well ignore my answer. I implemented a small interpreted language without prior yacc/bison knowledge. I found the tutorial sections of the bison manual extremely helpful. The examples are IHMO very well explained (or were at least some versions ago). I think the bison manual is one of the nicest pieces of documentation I have seen of all GNU tools. You might want to print it out, or look at it with "info bison". -- Regards, Dieter