[nem-en] Parser combinators / Do you need to parse something?
Kamil Dworakowski
kamil.dworakowski at googlemail.com
Sun Jul 1 10:46:13 CEST 2007
> I've ported Parsec library from Haskell to Nemerle. It is almost
complete, it can parse strings and XML (uses XmlReader inside).
> Now I need to polish it. I want to write complex parser in order to
debug library and show how to use it.
> I can write parser for something like YAML or Python, but if you need
some parser for your needs, tell me about it.
> Thus it will be usefull not only to me, but to you too.
In aop macros I parse pointcuts using combinators. I am going to commit
it to
the repository soon; then you could branch and play with it. It has many
tests
so you will know when it works. If it succeeds, I will gladly use your
library.
Maybe you could add some better error handling :).
My parser type is
type Parser['a] = list[Nemerle.Compiler.Token] -> PResult['a]
-- Kamil Dworakowski
More information about the devel-en
mailing list