[antlr-interest] Lexer States, HTML and <SCRIPT> tag

johnclarke72 johnclarke at hotmail.com
Sun Jun 16 12:42:42 PDT 2002

I have a lexer that starts in a state where it only identifies text.  
When is sees a < it changes state so that it processes Tags.  This is 
OK until you reach the SCRIPT tag.  This tag can have attributes and 
code between the begin and end tags.  eg :

   var cimage;
   cImage = new Image;

Basically I need it to keep the text between the begin and end script 

How can I do this ?  I would be grateful for all advice offered.




Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list