[antlr-interest] Syntax validation for proprietary language using antlr

SSG JJV virtuoso.coders at gmail.com
Tue Nov 25 11:19:37 PST 2008


Hello AntlrMasters,

I want to develop an antlr program that validates the syntax of a
proprietary language similar to C++ language. For ex:

INT a, b;

I want to validate syntax and throw errors in case of syntactical errors in
the program.
In the above example, say if user misses semicolon at the end, i want to
throw appropriate message to the user.

Should i use AST approach? Are there any sample 'validation programs
developed in antlr' already available? Please advice.

Thanks,
Munna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081125/85b7d283/attachment.html 


More information about the antlr-interest mailing list