Something went wrong. Try again.
forked from gbury/dolmen
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{1 Dolmen}
{2 License}
This code is free, under the BSD license.
{2 Contents}
Dolmen is a parser library, intended to considerably reduce the burden of havingto parse different input languages. The main idea of dolmenis to provide an easy way to obtain a structured representationof an input, but not to completely abstract over the different input languages.Indeed, most languages are different enough that completeley abstracting over manyof them would require specific encodings that would be detrimental to keepingthe original structure of the input. Instead, the idea is to identify thecore requirements of each language and provide easy way to obtain parsersfor these languages when provided with an implementation that meets the requirements.
To that effect, dolmen mainly provides functors that take an adequate implementationof terms and top-level directives, and then return parsers for various languages.
{4 Language classes}
Some languages have enough similarities in either synatx or purpose to be packedinto classes. Currently, the only class available is the {!Logic} class that regrouplanguages used in formal proof.
{!modules:Dolmen_class.Logic}
The following modules synthesize the implementation requirements for language classes:
{!modules:Dolmen_intf.IdDolmen_intf.TermDolmen_intf.StmtDolmen_intf.Location}
{4 Standard implementations}
The following modules define standard implementations that can be used to directlyinstantiate the parser functors.
{!modules:Dolmen_std.IdDolmen_std.TermDolmen_std.NormalizeDolmen_std.StatementDolmen_std.ParseLocation}
{4 Language parsers}
Individual language parsers are available through the following modules:
{!modules:Dolmen_dimacsDolmen_icnfDolmen_smtlib2Dolmen_tptpDolmen_zf}
These parsers all create modules with the following interface:
{!modules:Dolmen_intf.Language}
{2 Index}
{!indexlist}