Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!apollo!vasta From: vasta@apollo.HP.COM (John Vasta) Newsgroups: comp.lang.c++ Subject: Re: Interfacing yacc/lex with C++ Message-ID: <4ced9a61.20b6d@apollo.HP.COM> Date: 20 Sep 90 21:33:00 GMT References: <1635@software.software.org> Sender: root@apollo.HP.COM Reply-To: vasta@apollo.HP.COM (John Vasta) Followup-To: comp.sys.apollo Organization: Hewlett-Packard Company, Apollo Division; Chelmsford, MA Lines: 19 In article <1635@software.software.org> burkhard@software.org (Neil Burkhard) writes: >I'm trying to use yacc/lex in a program I'm developing in C++ >using Apollo's C++ system. Can anybody shed some light on >how I can have the yacc action routines invoke C++ routines? Not >obvious how I can have the compiler figure out the proper names since >C++ mangles them. Note: everything is in C++ (including 'main') >except yacc/lex stuff. The next release of Domain/OS (SR10.3) on the Apollo contains modified versions of lex/yacc which produce output that can be compiled by the C++ compiler (the only problems were with function prototypes). In that case, you can put C++ code directly in the parser actions and just compile the output as a C++ source file. SR10.3 is due out soon, I believe, but I don't know the exact date. John Vasta Hewlett-Packard Apollo Systems Division vasta@apollo.hp.com M.S. CHR-03-DW (508) 256-6600 x5978 300 Apollo Drive, Chelmsford, MA 01824 UUCP: {decwrl!decvax, mit-eddie, attunix}!apollo!vasta