[ocaml-infra] Fwd: [opam-repository] Add ocaml-markdown 0.1.1 (#863)
Gabriel Scherer
gabriel.scherer at gmail.com
Tue Jul 2 10:49:29 BST 2013
Not quite in-topic because it is about parsers for mardown-like
languages, rather than markdown itself (if "Markdown" really exists as
a well-defined language with several compatible implementations), but
the following project are possibly interesting:
- mlorg is a parser for Emacs' org-mode syntax (
http://kiwi.iuwt.fr/~asmanur/projets/mlorg/docs/SYNTAX.html ); it is
based on a rather flexible parser engine based on layered automatons,
that is currently special-cased to org-mode but should be easy to
retarget to other markup languages such as markdown (
http://gitorious.org/mlorg/mlorg/trees/master/syntax/common )
- lambdoc ( http://lambdoc.forge.ocamlcore.org/ ) is a pandoc-inspired
library that supports several syntaxes, among which a markup/wiki
syntax http://lambdoc.forge.ocamlcore.org/lambwiki-manual/index.html ;
the parsing engines use more classical tools: ulex for lexing, some
magical context-dependent stuff, then menhir for parsing
Both are regularly maintained (but the mlorg website is in a sorry
state) and could be credible basis for cooperation with Cow's need
(basically you need a library with a markdown parser that returns a
friendly AST to implement your camlp4 quotations, and you need their
parser to handle antiquotations) while reinforcing the upstream
project. That said, a strong markdown-only library would also be a
positive asset in the OCaml ecosystem, and probably wouldn't need that
generality.
On Tue, Jul 2, 2013 at 11:28 AM, Anil Madhavapeddy <anil at recoil.org> wrote:
> Regarding Markdown parsing, has anyone investigated the various pure OCaml
> parsing options? The COW Markdown parser really needs to be cleaned up, and
> I'd rather use an external package (but I haven't looked at this one in
> detail, so if anyone has time that'd be great). Thomas just merged it into
> OPAM.
>
> -anil
>
> Begin forwarded message:
>
> From: jpdeplaix <notifications at github.com>
> Subject: [opam-repository] Add ocaml-markdown 0.1.1 (#863)
> Date: 1 July 2013 13:56:34 BST
> To: OCamlPro/opam-repository <opam-repository at noreply.github.com>
> Reply-To: OCamlPro/opam-repository
> <reply+i-16212757-6176e1649574862fa6867a84567ba41b7d4e7ee8-53164 at reply.github.com>
>
> ________________________________
>
> You can merge this Pull Request by running
>
> git pull https://github.com/jpdeplaix/opam-repository master
>
> Or view, comment on, or merge it at:
>
> https://github.com/OCamlPro/opam-repository/pull/863
>
> Commit Summary
>
> Adding ocaml-markdown 0.1.1
>
> File Changes
>
> A packages/ocaml-markdown.0.1.1/descr (1)
> A packages/ocaml-markdown.0.1.1/opam (17)
> A packages/ocaml-markdown.0.1.1/url (2)
>
> Patch Links:
>
> https://github.com/OCamlPro/opam-repository/pull/863.patch
> https://github.com/OCamlPro/opam-repository/pull/863.diff
>
>
>
> _______________________________________________
> Infrastructure mailing list
> Infrastructure at lists.ocaml.org
> http://lists.ocaml.org/listinfo/infrastructure
>
More information about the Infrastructure
mailing list