GOLD is good

I am not talking about gold but about GOLD – A Free, Multi-Programming Language, Parser. Recently I had a need to implement a text box that allows entering either a string|int|date or a list of string|int|date divided by char ‘|’ meaning OR. The obvious solution is to create a proper grammar to parse the input. But how? There are plenty of parsers out there but all of them I saw are difficult or complex or both. IOW overkill for such a simple grammar and I really wasn’t in mood to dig into them. Luckily I’ve came across GOLD which seemed powerful and easy enough to do the job.After a day I am already bulding my grammars and appropriate code to handle them which I consider a pretty good result.

Leave a Reply