https://github.com/chomosuke/circle-lang
https://github.com/chomosuke/circle-lang
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chomosuke/circle-lang
- Owner: chomosuke
- Created: 2024-02-05T06:33:00.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-29T23:35:38.000Z (over 1 year ago)
- Last Synced: 2024-12-24T01:51:35.292Z (over 1 year ago)
- Language: C++
- Size: 360 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Circle Lang: The perfect programming language
- Do `circle-lang ` to interpret a file.
- Do `circle-lang --debug` to debug a circle lang program.
- Do `circle-lang --from-bf` to transpile a Brainfuck program into a
circle lang program.
## How to build and run this project
### Requirements
- CMake >= 3.28
- clang >= 18.1.2
- ninja >= 1.11
- [vcpkg](https://learn.microsoft.com/en-us/vcpkg/get_started/get-started?pivots=shell-basj)
### Steps
- Choose your c/c++ compiler with environment variables `CC` and `CXX`. E.g.
`export CXX=clang++-18 CC=clang-18`.
- run `sh make.sh`.
- run `sh run.sh `.
- The binary can be found in `./build/circle-lang`.
## Add dependencies
- Modify vcpkg.json
- run `sh make.sh`
- Modify CmakeLists.txt
## Sample programs
- [sample-program/hello-world.crcl](sample-program/hello-world.crcl)
- [sample-program/postfix-calculator.crcl](sample-program/postfix-calculator.crcl)
## Working with Circle Lang
Check out [documentation.md](documentation.md) and [guide.md](guide.md).