is a very simple esoteric programming language.
The program is of the form
c/filter/flags/halt/flags2 comments
Note that /
s in c
must be escaped, and special chars in /filter/flags
and /halt/flags2
must be escaped, as they are regular expressions and subject to their rules. Flags are case insensitive. Supported flags:
n
- also consider non-printable characters (if on for any is automatically on for the other)i
- case-insensitivem
- also consider multiline strings (ditto)l
- enable multiline mode, automatically implyingm
s
- dot matches allf
- match the entire stringx
- only a flag in halt, make program run infinitely+group
- only print a group (reference by number). Default is equivalent to+0
-group
- same, but by name In addition, verbose mode is enabled, allowing comments.
The regex interpreter, if c
is preset, takes an input, and then runs through strings, and for each string:
- If
/halt/flags2
matchesinputcstring
if there is input, orstring
if there is none, it halts. - If
/filter/flags
matchesinputcstring
if there is input, orstring
if there is none, it printsstring
. It counts using Pyth's base256 encoding.