You can find the RTF specification at http://www.wotsit.org/ (like you can most any file format a programmer might need help with), and it includes a sample c reader (Appendix A).
It doesn't look like it'd be too hard to develop a grammar, although it looks like it'd be lots easier to just develop a parser ;)
Anybody looking for a project this smells like a good one.
update:
If you're looking for strategy, try looking at a Latex parser, cause LateX and RTF look very similar if you ask me.
I'm suprised there isn't a opensource library already out there to do this (i know there is a non-free one that looks like it'd be useful).
____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.
In reply to Re: Parse::RecDescent grammar for RTF
by PodMaster
in thread Parse::RecDescent grammar for RTF
by Courage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |