Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```