Wednesday, December 15, 2010

Curl memoization and a PEG parsing pkg

A text search of the Curl 7.0 docs using the Curl Documentation Viewer finds two mentions of Memoizer-of but only one is an implementation note:
make-SocketInetAddress-from-address
Memoizer-of is documented as
{Memoizer-of domain:Type, range:Type} (class)
This memoization class or its near equivalent would be crucial to getting PEG parsing into Curl as a package for a regexp alternative.
The other mention in the docs is suggestive and occurs as one of the notes to the docs on BucketHashTable-of of the package CURL.LANGUAGE.CONTAINERS

public final serializable BucketHashTable-of {inherits {Association-of tk, te}}

With regard to regexp, the Curl GUI packages already come with a RegexpValidator class for controls relying on use of CURL.LANGUAGE.REGEXP

Btw, great demos of the power of the Curl Documentation Viewer are the Regular Expressions doc pages with their 'live-code' examples for learning PCRE.

No comments: