Skip to content

Instantly share code, notes, and snippets.

View aartaka's full-sized avatar
💡
Stuplime programming

Artyom Bologov aartaka

💡
Stuplime programming
View GitHub Profile
@aartaka
aartaka / escaped-read.bf
Last active September 30, 2024 19:55
Read a line of chars with escape sequences like \n, \t, \a, \b, \r
[-][Initial memory layout:
[0][case flag(0)][char]
After some iterations:
[processed ...][0][case flag][char]]
>>,----- -----
[main read loop
<+> set case flag
backslash (92)
----- ----- ----- ----- ----- ----- ----- -----
----- ----- ----- ----- ----- ----- ----- ----- --