I've updated my parser combinator library for Factor so it runs on the latest CVS version of Factor. The library itself is based on a version described in the Clean programming manual.
As the Factor CVS tends to be in a state of work and not always able to be bootstrapped I've put a darcs
archive of a version of Factor where the combinator library works on.
The following darcs command will get this version of Factor (It's also
the version of Factor running the online Factor browser:
darcs get http://factor.modalwebserver.co.nz/factor
To bootstrap this version of Factor on a Linux x86 machine, the
bootstrap image is included in the archive. The following sequence of
commands demonstrates how to load the parser combinators:
cd factor/Factor/Factor ./f boot.image.le32 ./f factor.image "/somedir/parser-combinators/lazy.factor" run-file "/somedir/parser-combinators/parser-combinators.factor" run-file USE: lazy USE: parser-combinators ...other code
The parser combinator library itself can be retrieved with this darcs command:
darcs get http://factor.modalwebserver.co.nz/parser-combinators
The continuation based web server examples are also there:
darcs get http://factor.modalwebserver.co.nz/cont-responder
Documentation for the Parser Combinator library is here. It also uses a Lazy Lists library which needs to be loaded first.
3:24:44 PM
|