Re: HTML and JavaScript lexer question

Darius Blasband <darius@phidani.be>
22 Feb 1997 23:03:30 -0500

          From comp.compilers

Related articles
HTML and JavaScript lexer question andrei@iastate.edu (1997-02-16)
Re: HTML and JavaScript lexer question darius@phidani.be (Darius Blasband) (1997-02-22)
| List of all articles for this month |
From: Darius Blasband <darius@phidani.be>
Newsgroups: comp.compilers
Date: 22 Feb 1997 23:03:30 -0500
Organization: Phidani Software, Brussels
References: 97-02-097
Keywords: parse

Andrei wrote:
>
> Is is easier to have two separate lexical specifications -- one for
> HTML and another for JavaScript? Or maybe dump them both into one,
> using states? What do people usually do?


Out of our experience, using a single analyzer is probably not such a
good idea. When analyzing HTML, we even use different (and scaffolded)
analyzers for the main body, and the INPUT tags. It is also true that
our analysis was unorthodox, because we were optimizing it for
performance for our specific case.


Cheers,


Darius
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.