Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuredoro/riddle
A toy imperative Pascal/C-like compiled language.
https://github.com/kuredoro/riddle
compiler language llvm-ir toy
Last synced: 21 days ago
JSON representation
A toy imperative Pascal/C-like compiled language.
- Host: GitHub
- URL: https://github.com/kuredoro/riddle
- Owner: kuredoro
- License: bsd-3-clause
- Created: 2020-08-21T10:03:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-01T09:01:39.000Z (about 3 years ago)
- Last Synced: 2024-11-30T18:47:26.777Z (22 days ago)
- Topics: compiler, language, llvm-ir, toy
- Language: C++
- Homepage:
- Size: 325 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# riddle
A toy imperative Pascal/C compiled language.
## How to run
### Requirements
1. Install [meson](https://mesonbuild.com/Getting-meson.html)
```
pip3 install --user meson
```2. Install [ninja](https://ninja-build.org) build system
3. Run the following in terminal:
```
meson builddir
```### On each compilation/execution
```
meson compile -C builddir
cd builddir
./lexer_demo
```### Test iteration
```
meson test -v -C builddir
```Add these commands to your text editor for fast access.
For vim, you can add these options to .vimrc or .localvimrc
```
nmap cc meson compile -C builddir
nmap ct meson test -C builddir
```