mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
add unreachable for unreachable things
This commit is contained in:
parent
1d9ab31baf
commit
89dbb50add
2 changed files with 26 additions and 89 deletions
11
src/index.ts
11
src/index.ts
|
|
@ -10,14 +10,15 @@ import fs from "fs";
|
|||
import { exec } from "child_process";
|
||||
|
||||
const input = `
|
||||
function main() = uwu(10);
|
||||
function main() = (
|
||||
loop (no(break););
|
||||
uwu(10);
|
||||
);
|
||||
|
||||
function print_a(
|
||||
a: String,
|
||||
): String = a;
|
||||
function no(a: !): String = a;
|
||||
|
||||
function uwu(a: Int) = if a != 0 then (
|
||||
print(print_a("uwu\n"));
|
||||
print("uwu\n");
|
||||
uwu(a - 1);
|
||||
);
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue