~rabbits/orca-toy

ref: b02ff7de80a33a10abb08e0cda50f83cde6a83c0 orca-toy/build.sh -rwxr-xr-x 390 bytes
b02ff7deneauoire Implemented missing operators 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

clang-format -i toy.c

rm -f ./toy

# GNU/Linux
cc -std=c89 -DDEBUG -Wall -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined -o toy toy.c

# Plan9
# pcc toy.c -o toy

# ./toy abflm.orca > abflm-result.orca
# diff abflm-result.orca abflm-expected.orca

./toy demo.orca