[antlr-interest] ANTLR grammar for reStructuredText

Robin diabeteman at gmail.com
Fri May 27 07:59:21 PDT 2011


Hello everyone,

I'm trying to write a grammar for the *reStructuredText* markup language
from the Markup
Specification<http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html>
in
docutils documentation..

I reused some parts of the Python
2.3<http://www.antlr.org/grammar/1078018002577/python.tar.gz> grammar
as indentation also matters in *reStructuredText* but I can't get my grammar
to work. Especially because I have to match lines of text which may contain
*any* character.

Here is my grammar<https://github.com/robin-jarry/rst4eclipse/raw/master/src/org/diabeteman/rst4eclipse/core/parser/grammar/Rst.g>
(which
is *NOT* working for now) and an example of RST
file<http://docutils.sourceforge.net/docs/user/rst/demo.txt>
.

I am desperate for help, can someone do something for me? :-)

Thank you in advance,

*Robin*


More information about the antlr-interest mailing list