[antlr-interest] Multipel lexer modes in ANTLR 3

Terence Parr parrt at cs.usfca.edu
Sat Sep 10 10:25:40 PDT 2005


On Sep 9, 2005, at 6:19 AM, Oliver Zeigermann wrote:

> Folks,
>
> does anyone know what is the official way to have multiple lexing
> modes in ANTLR 3? Shall I handle it as described in example island
> grammars? Or maybe using semanic predicates?

Hi Oliver, you can use predicates or you can use multiple lexer  
objects just like in the island grammar example.

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com



More information about the antlr-interest mailing list