From owner-freebsd-hackers Fri Dec 6 14:12:51 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA13585 for hackers-outgoing; Fri, 6 Dec 1996 14:12:51 -0800 (PST) Received: from isbalham (isbalham.ist.co.uk [192.31.26.1]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id OAA13576 for ; Fri, 6 Dec 1996 14:12:47 -0800 (PST) Received: from gid.co.uk (uucp@localhost) by isbalham (8.6.12/8.6.12) with UUCP id WAA04833; Fri, 6 Dec 1996 22:03:55 GMT Date: Fri, 6 Dec 1996 21:59:34 GMT Received: from [194.32.164.2] by seagoon.gid.co.uk; Fri, 6 Dec 1996 21:59:34 GMT X-Sender: rb@194.32.164.1 Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Terry Lambert From: rb@gid.co.uk (Bob Bishop) Subject: Re: Yacc -p is broken Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 12:01 pm 6/12/96, Terry Lambert wrote: >[...] >In any case, with all the non-static globals, it's inlikely that >you could safely use multiple lexers in the same program without >seriously fixing lex. True, but you don't need to; as I said in my previous reply you can run a lexer multiple times. If you want different lex rules for different phases (I've usually found that most are common), you can use a state variable and REJECT. [In case you missed it, in my last reply I was talking about multiple grammars not multiple parsers.] -- Bob Bishop (0118) 977 4017 international code +44 118 rb@gid.co.uk fax (0118) 989 4254 between 0800 and 1800 UK