-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find a library for parsing markdown files #3
Comments
here are a few qt based markdown editors or otherwise markdown related projects: |
a -- simple -- sample parser implementation: http://www.qtcentre.org/threads/30707-Parse-Text-File-with-Qt |
an implementation in ocaml: https://github.com/MFP/OcsiBlog/blob/master/simple_markup.ml a similar approach in php: https://github.com/erusev/parsedown/blob/master/Parsedown.php and one in c: https://github.com/vmg/sundown/blob/master/src/markdown.c |
this is a good summary of the ways one can work on it: http://stackoverflow.com/questions/605434/how-would-you-go-about-parsing-markdown my conclusion is that it's probably best to split the file by line and then analyse each of them (or read the file one line at t time and then parse them) |
in the scribus code the about files look like markdown ones: http://scribus.net/svn/Scribus/trunk/Scribus/scribus/ui/about.cpp |
qlalr allows to parse a file based on a formal grammar (http://en.wikipedia.org/wiki/LALR_parser)
the main idea is:
reading http://www.cforcoding.com/2010/01/markdown-and-introduction-to-parsing.html seems to show that markdown not being context free, it's hard to create a context free grammar for it. |
a peg parser may be a better idea:
|
If possible something qt based.
The text was updated successfully, but these errors were encountered: