Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toptobes/brainf
176 char Brainf*** interpreter
https://github.com/toptobes/brainf
Last synced: about 9 hours ago
JSON representation
176 char Brainf*** interpreter
- Host: GitHub
- URL: https://github.com/toptobes/brainf
- Owner: toptobes
- Created: 2022-11-02T17:37:24.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-16T03:21:48.000Z (about 1 year ago)
- Last Synced: 2024-11-11T21:42:55.415Z (2 months ago)
- Language: C
- Homepage:
- Size: 334 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```c
char a[9999],*p=a,s,d;i(char*c){for(;d^93&(d=*++c);){p-=d==60;p+=d==62;*p-=d==45;*p+=d==43;d==46?putchar(*p):d==91&&*p&&i(c--);read(0,p,d==44);if(!*p&d==91)for(;s+=*c==91,s-=*++c==93;);}}
```
187 chars. C90. Ubuntu.```c
char a[9999],*p=a,s,d;i(char*c){for(;d^93&(d=*++c);)p-=d==60,p+=d==62,*p-=d==45,*p+=d==43,d==91?*p?i(c--):({for(;s+=*c==91,s-=*++c==93;);}):d==46&&putchar(*p),read(0,p,d==44);}
```
176 chars. Less portable.Works on my machine /shrug