kaleidawave
3 public vals
Joined April 13, 2023
Check a snippet using Ezno. Example
1
2
3
import { check } from "https://esm.sh/stable/ezno@0.0.15/initialised.mjs";
export let ezno_check = (code: string) => check((_path) => code, "input.js");
Check a snippet using the Ezno type checker
1
2
3
4
5
6
7
import { ezno_check } from "https://esm.town/v/kaleidawave/ezno_check";
const output = ezno_check(
"const x: string = 20",
);
console.log(output);
Parse an expression using Ezno!
1
2
export const ezno_parser = import("https://esm.sh/stable/ezno@0.0.15/initialised.mjs")
.then(({ parse_expression }) => parse_expression("x = 2"));