Reputation: 14373
I am trying to develop a parser to parse simple logical relationship expressions, which includes "(", ")", ">", "<", "," as token. An example might be:
a < (b > c > (x, y, z))
From the above expression, I would deduct that:
Is there any tool to support this kind of parsing?
thanks, Green
Upvotes: 1
Views: 575
Reputation: 1804
You can try JavaCC .. It is a bit tricky to get used to it but once you get it you can easily build such parsers. You can start by following this tutorial. An eclipse plugin is also available which facilitates its use to generate the required files and so on.
Upvotes: 2