Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!munnari!mulga!ausmelb!ejp From: ejp@ausmelb.oz.au (Esmond Pitt) Newsgroups: comp.unix.wizards Subject: Re: Do start conditions work in lex? Message-ID: <436@ausmelb.oz.au> Date: Mon, 28-Sep-87 21:55:26 EDT Article-I.D.: ausmelb.436 Posted: Mon Sep 28 21:55:26 1987 Date-Received: Wed, 30-Sep-87 05:38:42 EDT References: <6@radix> <263@dnlunx.UUCP> Reply-To: ejp@ausmelb.UUCP (Esmond Pitt) Organization: Austec International Limited, Melbourne Lines: 20 Keywords: lex, bugs In article <6@radix>, jimv@radix (Jim Valerio) writes: > [...] it looks like lex is not doing the right thing with > start conditions [...] > [...] > Am I missing something obvious here, or is there a bug in lex? > If it is a bug, can someone suggest a reasonable workaround? [1000's of people pointed out lex's rule-selection rules] Another thing to mention is that rules can be made to be active *only* in the initial condition, by using the start-condition name INITIAL, i.e.: blah grumble; blah mumble; -- Esmond Pitt, Austec International Ltd ...!seismo!munnari!ausmelb!ejp,ejp@ausmelb.oz.au D