m-ender / retina

A regex-based programming language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use pilcrow as an additional linefeed escape

m-ender opened this issue · comments

Linefeeds currently cost two bytes when using the (now default) single-file mode. If I make sure that Retina works correctly with ISO 8859-1 encoded files, this can be brought down back to one by pre-processing the entire file and replacing all pilcrows with linefeeds (after splitting the file into stages). The only thing I haven't settled on yet is whether it should be possible to escape pilcrows so that they can be included literally themselves. It might be simpler add a command-line option that disables them as escapes.