Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!137.226.231.214.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: regexp(ing) Backus-Naurish expressions ... Date: Tue, 12 Mar 2013 09:30:49 -0400 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 12 Mar 2013 13:28:21 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="0d73d8cc209bff1c6395088b400d0605"; logging-data="30587"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zkgEuCAZH8ArlQlLJs1TD" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: Cancel-Lock: sha1:Ce2CoFY51gYqW3k0KXx1twYt9+Q= Xref: csiph.com comp.lang.java.programmer:22926 On 3/11/2013 9:56 PM, Joshua Cranmer 🐧 wrote: > On 3/11/2013 5:28 PM, Stefan Ram wrote: >> =?UTF-8?B?Sm9zaHVhIENyYW5tZXIg8J+Qpw==?= >> writes: >>> On 3/10/2013 5:54 PM, Roedy Green wrote: >>>> parsing Java >>> Actually, all of those examples fall under the category of lexing, >> >> Parsing is not lexing, usually parsing comes after lexing. >> > > I agree, but Roedy wrote: > parsing Java, HTML, BAT language ... to do syntax colouring. > > Syntax coloring generally requires nothing more than lexing the input to > figure which tokens are which. Is that how the NetBeans editor knows to display local variables in black but class and instance fields in green? ;-) -- Eric Sosman esosman@comcast-dot-net.invalid