Blog: Passing parameters to Yacc and Flex

Johann 'Myrkraverk' Oskarsson <>
Wed, 04 Jan 2012 06:35:02 +0000

          From comp.compilers

Related articles
Blog: Passing parameters to Yacc and Flex (Johann 'Myrkraverk' Oskarsson) (2012-01-04)
| List of all articles for this month |

From: Johann 'Myrkraverk' Oskarsson <>
Newsgroups: comp.compilers
Date: Wed, 04 Jan 2012 06:35:02 +0000
Organization: X-Privat.Org NNTP Server -
Keywords: parse, yacc
Posted-Date: 06 Jan 2012 10:01:15 EST

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:

Full URL:

      Johann Oskarsson |[]
      PostgreSQL Development, 24x7 Support, Training and Services --+--

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.