brainfuck.l - brcon2024-hackathons - Bitreichcon 2024 Hackathons HTML git clone git://bitreich.org/brcon2024-hackathons git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/brcon2024-hackathons DIR Log DIR Files DIR Refs DIR Tags DIR Submodules --- brainfuck.l (335B) --- 1 %{ 2 #include "y.tab.h" 3 %} 4 5 %% 6 7 ">" { return INCPTR; } 8 "<" { return DECPTR; } 9 "+" { return INCVAL; } 10 "-" { return DECVAL; } 11 "." { return OUTPUT; } 12 "," { return INPUT; } 13 "[" { return LOOPSTART; } 14 "]" { return LOOPEND; } 15 . { /* ignore any other character */ } 16 17 %% 18 19 int yywrap(void) { 20 return 1; 21 } 22