https://github.com/alextopher/serotonin
WIP : A toy stack-oriented programming language that transpiles to Brainfuck
https://github.com/alextopher/serotonin
brainfuck compiler programming-language rust
Last synced: 8 months ago
JSON representation
WIP : A toy stack-oriented programming language that transpiles to Brainfuck
- Host: GitHub
- URL: https://github.com/alextopher/serotonin
- Owner: Alextopher
- License: mit
- Created: 2022-06-09T15:39:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T15:49:17.000Z (over 1 year ago)
- Last Synced: 2024-07-27T17:07:42.144Z (over 1 year ago)
- Topics: brainfuck, compiler, programming-language, rust
- Language: Rust
- Homepage:
- Size: 651 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serotonin
:warning: currently working on a complete rewrite using a different set of technologies and better programming practices
A _toy_ [stack-oriented](https://en.wikipedia.org/wiki/Stack-oriented_programming) programming language that transpiles to [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) and is inspired by [Joy](https://hypercubed.github.io/joy/joy.html).
The project and documentation are works in progress.
## Hello World
```serotonin
IMPORT std;
main == "Hello, World!" sprint;
```
Compile:
```text
$ serotonin hello.sero
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++[<]>[.>]
```
## [Description](./description.md)
Check it out, and feel free to leave feedback.
## License
Copyright (c) 2022-24 Christopher Mahoney. This software is licensed under the [MIT license](https://opensource.org/licenses/MIT). Read [LICENSE](LICENSE) for all the details.