Parsing Xml

Jan 21, 2013 at 8:01 AM


Is it doable to parse a piece of html/xml with irony (and if so does anyone have a starter on how to define it)?

I want to parse some xml/html'ish files created by Microsoft's HtmlHelp Workshop (the keywork index for example) and they are a mix between html and xml and not that well formed that I can read/parse them well them with xml or html parsers.


Jan 21, 2013 at 4:26 PM


there's no direct sample in Irony, and I'm not aware of any from other devs. Your closest start point is probably Json grammar - it is also a 'data format' grammar, so you can look at it and then come up with XML/HTML. I'm thinking about providing support for XML/HTML, mainly because XML is embedded in some languages like Scala (and new VB) - but this is in the future