A lightweight library featuring parsers for multiple minimal subsets of TypeScript, designed for the Japanese book named "...".
import { parseArith } from "npm:tiny-ts-parser";
console.log(parseArith("100"));
$ deno run -A test.ts ⏎
{
tag: "number",
n: 100,
loc: { start: { line: 1, column: 0 }, end: { line: 1, column: 3 } }
}
deno install
deno test -A
npm install
npm run build
cd examples
npm install
node --test
npm install
npm run build
npm publish