svelte-i18n/compiler/index.ts
Christian Kaisermann 1e1db5e981 wip
2020-01-23 23:52:38 -03:00

10 lines
268 B
TypeScript

import { parse } from './deps/parser.ts'
const log_json = (o: object) => console.log(JSON.stringify(o, null, 2))
const ast = parse(`{taxableArea, select,
yes {An additional {taxRate, number, percent} tax will be collected.}
other {No taxes apply.}
}`)
log_json(ast)