Introduction
Introduction Statistics Contact Development Disclaimer Help
brainfuck.l - brcon2024-hackathons - Bitreichcon 2024 Hackathons
git clone git://bitreich.org/brcon2024-hackathons git://enlrupgkhuxnvlhsf6lc3fz…
Log
Files
Refs
Tags
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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.