delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/02/19:43:41

Date: Fri, 02 Dec 1994 14:47:13 +0100
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: tony AT nt DOT tuwien DOT ac DOT at
Subject: Multiple FLEX/BISONs in one program ?

Hi,

I have used FLEX/BISON for scanners and parsers many times before, but now I
should 
parse 3 different files (with different grammars) in one program.
Both BISON and FLEX allow to change their global variables using the -p (or
-P) commandline
option. Multiple use should therefore be possible.

But...
When using e.g. -paa I get an unresloved symbol "aaerror" (was yyerror
before) while linking.
yyerror seems to be in libbison.a
Anyway, there might be more problems, I haven't figured out yet.

Has someone successfully applied multiple scanners/parsers in one program
using FLEX/BISON ?
I studied the docs, but didn't find any hint.

Any ideas welcome !

Tony



============================================================================
Dipl.-Ing. Anton HELM             **    Private:
Institut fuer Nachrichtentechnik  **    
und Hochfrequenztechnik           **    Anton HELM
Guszhausstr. 25/389               **    Gratian-Marx Str. 7/27
A-1040 Wien                       **    A-1110 Wien
AUSTRIA                           **    AUSTRIA  
                                  **
Tel.: +43-1-58801-3520            **
FAX : +43-1-5870583               **
email: Anton DOT Helm AT nt DOT tuwien DOT ac DOT at **
       tony AT nt DOT tuwien DOT ac DOT at       **                                  
   ________   __    __           __        __   __   _______   __        __
  /__   __/  / /   / /          / /       / /  / /  / _____/  /  \      / /
    /  /    / /   / /  _____   / /  __   / /  / /  / /____   / /\ \    / /
   /  /    / /   / /  /____/  / /  / /  / /  / /  / _____/  / /  \ \  / /
  /  /    / /___/ /          / /__/ /__/ /  / /  / /____   / /    \ \/ /
 /__/    /_______/          /___________/  /_/  /______/  /_/      \__/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019