Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aceinetx/abstractbf

Abstract brainfck with c-like syntax (My first C# project)
https://github.com/aceinetx/abstractbf

Last synced: 4 days ago
JSON representation

Abstract brainfck with c-like syntax (My first C# project)

Awesome Lists containing this project

README

        

# AbstractBF
Abstract brainfck compiler with c-like syntax

Syntax (no semicolons):

`p++` move pointer to right (>)

`p--` move pointer to left (<)

`p += 4` move pointer to right by some value (>)

`p -= 4` move pointer to left by some value (<)

`*p++` increment pointer (+)

`*p--` decrease pointer (-)

`whilenz [` declare non-zero loop ([)

`]` end non-zero loop (])

`putchar(*p)` print pointer value as char

`putchar('A')` print constant char (caution: will override current pointer)

`puts("Hello, world!")` print constant string (caution: will override current pointer, also produces very long output but still has some optimization to that)

`*p = 5` set pointer value

`*p *= 3` multiply current pointer value by constant value (caution: will override next and current pointer)

`*p += 3` add to current pointer value

`*p -= 3` remove from current pointer value