help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: include files in bison parser


From: Hans Aberg
Subject: Re: include files in bison parser
Date: Sun, 11 May 2003 00:14:29 +0200

At 16:55 -0400 2003/05/10, Vitaliy Ziskin wrote:
>I wrote a language parser that parse a sequece of statments.  My question is
>whether I can write a function that allows a user to use include files in this
>program.  For this, I suppose the bison needs to switch to the include file as
>a yyin and then when it is done come back to the old yyin.  I tried some
>way of
>doing it but failed misserably.  I'm using flex to read tokens and bison to
>parse them.  If this is not the right place to ask this question, can you
>direct me to the right on.  I appreciate all of your help.

The Flex manual has a section on multiple input buffers. Have you tried
that one? Check the Flex manual or the
  Help-flex mailing list
  address@hidden
  http://mail.gnu.org/mailman/listinfo/help-flex

  Hans Aberg






reply via email to

[Prev in Thread] Current Thread [Next in Thread]