Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waldirborbajr/bplang
BPLang it is my language compiler
https://github.com/waldirborbajr/bplang
Last synced: about 2 months ago
JSON representation
BPLang it is my language compiler
- Host: GitHub
- URL: https://github.com/waldirborbajr/bplang
- Owner: waldirborbajr
- Created: 2024-10-22T14:34:03.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T16:27:06.000Z (2 months ago)
- Last Synced: 2024-11-04T17:31:00.555Z (2 months ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**WARNING** This project is in its very initial development stage, not all
features are implemented yet, usage API still subjected to change until `1.0.0`# BP Language Transpiler
This project is a transpiler for a custom language called **BP**. The BP language is a simple, C-like language with variable declarations and print statements. The transpiler, written in **Rust**, converts BP code into C code, compiles it using GCC, and runs the resulting executable.
## BP Language Syntax
A basic BP program consists of variable declarations, assignments, and print statements. Here's an example of a BP source file (`main.bp`):
```bp
m variable01 = 01;
m variable02 = 02;
c variable03 = "BP Language";
show "The future language start here";
```# References
https://craftinginterpreters.com/
https://astexplorer.net/