[antlr-interest] Grammar's correctness

Mauro Pellicioli nightwolf at email.it
Wed Sep 12 14:00:05 PDT 2007


I'm dealing with an http request that nondeterministically responds with
three kind of pages:for which of them I have a lexer grammar (making one big
grammar would lead to a poorly readable code) but I don't know which to call
(because of the nondeterminism), so I created a fourth simple grammar (say,
TypeCheckGrammar.g) that recognizes the type using the presence of some
words in the html document and then run the correct grammar on the basis of
TypeCheckGrammar.g result; is this the right way to solve the problem?

Thanks for help. 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 250 biglietti da visita Gratis + 42 modelli e Etichette per Indirizzo
Gratis + Porta biglietti Gratis -Offerta limitata!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6782&d=20070912




More information about the antlr-interest mailing list