Skip to content

Instantly share code, notes, and snippets.

View heirloompixels's full-sized avatar

Kyle Parker Cunningham heirloompixels

View GitHub Profile
@non
non / grep.tal
Last active February 18, 2025 04:43
Regex implementation in Uxntal. Includes a simple grep implementation was well as a REPL for testing.
( grep.tal )
( )
( by d_m )
( print a character to STDOUT )
%emit { #18 DEO }
( the first argument to grep is the regex )
( arguments are passed on STDIN, so we just )
( assume the first "line" is the argument )