Foreign language parsers

Dimitry Golubovsky golubovsky at
Fri Aug 5 09:15:56 EDT 2005


You wrote:


Has anyone looked at positioning foreign language parsing modules in
the standard libs, or specifying a common framework or contract for
such modules?


I wrote up a proposal earlier on this list how to extend Cabal to
integrate hsffig (and I believe tools like c2hs might be integrated
the same way, if not integrated already).

As for "library use", one of the future directions of hsffig
development may be adding a wrapper around its parser to represent
parsing results as a collection of items, with possiblilty to run
queries over it such as:

- get the list of constants whose name matches a regexp
- get the name of the enumeration containing the given constant

etc. This might help develop custom wrappers, like one John Goerzen
developed for openldap.

Dimitry Golubovsky

Anywhere on the Web

More information about the Libraries mailing list