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

Indhu Bharathi indhu.b at s7software.com
Wed Apr 1 02:08:47 PDT 2009


Take a look at 'filter' mode of ANTLR lexer. This will let you skip text 
you are not interested in.

Posting a more specific example of what you need might help.

Peter Bertok wrote:
>
>  
>
> 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.
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>   

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


More information about the antlr-interest mailing list