Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!news.iecc.com!nerds-end From: Johann 'Myrkraverk' Oskarsson Newsgroups: comp.compilers Subject: Blog: Passing parameters to Yacc and Flex Date: Wed, 04 Jan 2012 06:35:02 +0000 Organization: X-Privat.Org NNTP Server - http://www.x-privat.org Lines: 28 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <12-01-004@comp.compilers> NNTP-Posting-Host: news.iecc.com X-Trace: leila.iecc.com 1325862075 99114 64.57.183.58 (6 Jan 2012 15:01:15 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Fri, 6 Jan 2012 15:01:15 +0000 (UTC) Keywords: parse, yacc Posted-Date: 06 Jan 2012 10:01:15 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: x330-a1.tempe.blueboxinc.net comp.compilers:403 Hi all, This blog may be of use to readers of this newsgroup. Here we go through the steps needed to pass parameters to the yyparse() and from that to yylex(). Familiarity with C, Flex and Yacc is assumed. This document is written for Berkeley Yacc and the reflex variant of Flex. Presumably GNU Bison and SourceForge Flex will work as well. For some reason I did not come across any concrete examples by googling. Please let me know what can be improved in the blog entry. Shortened URL: http://woe.is/yBncmH Full URL: http://my.opera.com/myrkraverk/blog/2012/01/04/passing-parameters-to-yacc-and-flex -- Johann Oskarsson http://www.2ndquadrant.com/ |[] PostgreSQL Development, 24x7 Support, Training and Services --+-- | Blog: http://my.opera.com/myrkraverk/blog/