When is better to use a parser such as ANTLR vs. writing your own parsing code?

Posted by ViralShah on Stack Overflow See other posts from Stack Overflow or by ViralShah
Published on 2010-03-16T17:07:19Z Indexed on 2010/03/16 17:11 UTC
Read the original article Hit count: 159

Filed under:
|

I need to parse a simple DSL which looks like this:

funcA Type1 a (funcB Type1 b) ReturnType c

As I have no experience with grammer parsing tools, I thought it would be quicker to write a basic parser myself (in Java).

Would it be better, even for a simple DSL, for me to use something like ANTLR and construct a proper grammer definition?

© Stack Overflow or respective owner

Related posts about parsing

Related posts about antlr