https://github.com/chaosinventor/dalanguagecbootstrapper
A bootstrapper for DaLanguage written in C
https://github.com/chaosinventor/dalanguagecbootstrapper
c99 dalanguage interpreter programming-language tooling
Last synced: about 1 month ago
JSON representation
A bootstrapper for DaLanguage written in C
- Host: GitHub
- URL: https://github.com/chaosinventor/dalanguagecbootstrapper
- Owner: ChaosInventor
- License: mit
- Created: 2023-09-29T16:53:25.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-01-10T14:43:15.000Z (about 2 years ago)
- Last Synced: 2025-03-14T01:16:19.048Z (11 months ago)
- Topics: c99, dalanguage, interpreter, programming-language, tooling
- Language: C
- Homepage:
- Size: 93.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DaLanguage C bootstrapper
A bootrapper for DaLanguage written in C.
**Note: DaLanguage is currently experimental, there is no documentation. This
project is still highly unstable and untested.**
## Building
In order to build the current test interpreter that can do basic math, simply
run `make` in the project directory
```shell
make -j
```
### Prerequisites
A working C99 compiler with the standard library along with basic unix utilities:
- rm;
- mkdir;
- printf;
- awk;
- sed;
- tr.
And of course make. In case you don't have make, you could run the compiler
yourself with all source files in `src/` and `Interpreters/math.c` and
`include/DaLanguageCBootstrap` in the header search path.
*No external dependencies are required.*
## Running
In order to run the math test interpreter, navigate to `build/bin/Interpreters/`
after having ran `make`. Then run `./math `.
**Assuming** the current working directory is the project repo:
```shell
make
cd build/bin/Interpreters/
echo 20 | ./math ../../../Examples/Factorial.dali
```
## Examples
Check the `Examples/` directory.
## Documentation
WIP, TBA.