[antlr-interest] explenatory system

Ifnu _ ifnubima at gmail.com
Thu May 24 17:59:56 PDT 2007


hi all,

i need your advice, i want to create a c parser that emit intelligent
or at least complete explenatory when recognition exception occurs.
i've read abbout paraphrase but it's not really what i'm looking for.

for example, if user type this code :

for(i=0;i<10,i++)

the paser should say something like this :

there are error in for clause, you sould use ";" instead of ","

or said something that more intelligent than explenation above, what
i'm looking for is a way to trap exception for most of rule and create
intelligent explenation about what goes wrong. i dont expect complete
technical explenation on how i could do that, i just need ideas or
approach i can use to construct intelligent explenation.

i've evaluate C.g grammer created by terrence in antlr v3 example, and
i want to use it as starting point.

thank you for your attention :D


-- 
http://www.nagasakti.or.id/roller/ifnu
regards


More information about the antlr-interest mailing list