Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/aceinetx/abstractbf
- Owner: aceinetx
- Created: 2024-05-21T19:57:01.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-22T20:17:31.000Z (3 months ago)
- Last Synced: 2024-11-08T05:29:35.822Z (about 2 months ago)
- Language: C#
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AbstractBF
Abstract brainfck compiler with c-like syntaxSyntax (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