DParser
is a simple but powerful tool for parsing. You
can specify the form of the text to be parsed using a combination of
regular expressions and grammar productions. Because of the
parsing technique (technically a scannerless GLR parser based on the
Tomita algorithm) there are no restrictions. The grammar can be
ambiguous, right or left recursive, have any number of null
productions,
and because there is no separate tokenizer, can include whitespace in
terminals and have terminals which are prefixes of other terminals.
DParser
handles not just well formed computer languages and data
files, but just about any wacky situation that occurs in the real world.
The result is natural grammars and powerful parsing.
gmake
-- only available with source code packagegmake test
-- only available with source code packagegmake install
-- binary or source code packagesFor python support: cd python; gmake install
D_USE_GC
: set to 1 to use the Boehm garbage collectorD_DEBUG
: set to 1 to compile with debugging support (-g
)D_OPTIMIZE
: set to 1 to compile with optimizations (-O3
)D_PROFILE
: set to 1 to compile with profiling support (-pg
)D_LEAK_DETECT
: set to 1 to compile with memory leak detection (-lleak
)D_USE_FREELISTS
: set to 1 to use free lists instead of straign free/malloc (defaults to 1)Contact the author: jplevyak
at
gmail