Manuscript (Case [Issue]22619) _Inbox - Documenting novel feature of RxParser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22619) _Inbox - Documenting novel feature of RxParser

Pharo Issue Tracker
Manuscript Notification
avatar
Lynn Bradshaw opened Case 22619: Documenting novel feature of RxParser and assigned it to Everyone:
Feature in Project:  _Inbox: Not Spam  •  You are subscribed to this case
I tried using a regular expression with a colon in it earlier. Basically, this is what I wanted to achieve in Finder but in a playground instead:

'do:' matchesRegex: '^do:$'.

The result was the terse and cryptic:

RegexSyntaxError: no terminating ":"

By looking through the source code and doing some Googling I was eventually able to find documentation from an old Squeak release on this subject:

http://www.mirandabanda.org/files/Cog/VM/SpurImages/2016-02-15/trunk50-64-15623.changes

(Look for "message predicate".)

What this is is in fact a fairly clever feature that allows unary messages to be sent to a character or characters (depending on what follows) but it is nonstandard and totally undocumented as is. So, for example, the following will evaluate to true:

'42' matchesRegex: ':isDigit:+'.

Brief official documentation of this unusual feature that could help some or at least not baffle others would be most welcome.
Priority Priority: 4 – Would be nice Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker