[climacs-devel] cl-ppcre

Nicolas Sceaux nicolas.sceaux at free.fr
Thu May 12 21:12:36 UTC 2005


Hello,

Finally, I've managed to modify CL-PPCRE so that it should be able to
scan arbitrary sequences -- including buffers.

To save bandwidth, it has been put here:
  http://nicolas.sceaux.free.fr/climacs-ppcre.tar.gz

Changes to climacs:
- regex.lisp, which implements the appropriate methods to make buffers
scannable by ppcre
- regex-test.lisp, for unit test.
- a patch for climacs.asd and packages.lisp

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: regex.lisp
URL: <https://mailman.common-lisp.net/pipermail/climacs-devel/attachments/20050512/9e181986/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: regex-test.lisp
URL: <https://mailman.common-lisp.net/pipermail/climacs-devel/attachments/20050512/9e181986/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ppcre.patch
Type: text/x-patch
Size: 1988 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/climacs-devel/attachments/20050512/9e181986/attachment.bin>
-------------- next part --------------

To test it: unpack climacs-ppcre.tar.gz inside the climacs root
directory (should create a climacs-ppcre/ subdirectory)

* (asdf:oos 'asdf:compile-op :climacs-ppcre)
* (asdf:oos 'asdf:compile-op :climacs-ppcre-test)
* (asdf:oos 'asdf:load-op :climacs-ppcre-test)
* (climacs-ppcre-test:test)
This is the regular CL-PPCRE unit tests (using strings). It should
output 3 differences: 662 790 1439.

* (asdf:oos 'asdf:compile-op :climacs)
* (asdf:oos 'asdf:load-op :climacs)
* (climacs-regex-tests:test)
This is the same unit tests, but using STANDARD-BUFFERs iso
STRINGs. It should output the same three differences.

Nicolas


More information about the climacs-devel mailing list