Skip to content

Instantly share code, notes, and snippets.

View GerryG's full-sized avatar

Gerry Gleason GerryG

View GitHub Profile
Not exactly sure what an accumulator is, but these serializers seem to write files
General pattern, __X_(un)serialise is the internal, recursive version of each:
a: accumulator
a uses a, m, r
a_i uses a_i, m
m: mtree Sematic tree matrix
uses m
r: receptor
@GerryG
GerryG / gist:5f2993f262fbe14f57f2
Created December 31, 2014 20:10
Ruby Character Classes
# encoding=utf-8
REGEXPS = [[/[[:alnum:]]/, /\p{Alnum}/],
[/[[:alpha:]]/, /\p{Alpha}/],
[/[[:blank:]]/, /\p{Blank}/],
[/[[:cntrl:]]/, /\p{Cntrl}/],
[/[[:digit:]]/, /\p{Digit}/],
[/[[:graph:]]/, /\p{Graph}/],
[/[[:lower:]]/, /\p{Lower}/],
[/[[:print:]]/, /\p{Print}/],