ANTLR / lexer (was: Backtick Hickup)
andrea at censi.org
Mon Sep 3 03:38:13 EDT 2007
On 9/3/07, Allan Odgaard <29mtuz102 at sneakemail.com> wrote:
> On Aug 27, 2007, at 11:02 PM, Eric Astor wrote:
> > [...]
> > Well - has anyone else looked into ANTLR 3.0 at all? The LL(*)
> > grammar language it uses (an EBNF) allows for full backtracking
> > support, and unspecified lookahead as far as necessary. It's fairly
> > well-optimized, as I understand it, taking advantage of some of the
> > packrat-parsing ideas to save handling a single text section
> > repeatedly...
> I am playing a bit with writing a Markdown parser now, since I have
> been involuntarily cut off from my regular project.
Which programming language are you using?
When you have a working parser in ANTLR3, let us know, I'm interested
in playing with it.
I guess the main challenge is detecting the block-level constructs,
lists in particular.
Also, the new block-level constructs used in Markdown Extra need still
more look-ahead (3-4 lines).
"Life is too important to be taken seriously" (Oscar Wilde)
More information about the Markdown-Discuss