[antlr-interest] Handling wiki-style plain text with optional markup?

Peter Bertok peter.bertok at experteq.com
Wed Apr 1 01:02:03 PDT 2009


I'm working on a trivial embedded "wiki" style content management system for a web project, and I'm trying to design an ANTLR grammar for it, but I'm getting stuck.

How does one write a grammar that can match a variety of rules, including things like nested brackets and the like, but if it can't match a section of the input, it always has a "fall through" rule called something like "plainText" such that parsing never fails. I'd like it to take anything it doesn't understand and simply pass it through as a text node.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090401/430f29db/attachment.html 


More information about the antlr-interest mailing list