lezer-ludus/test.js

14 lines
194 B
JavaScript
Raw Normal View History

2023-11-26 18:02:33 +00:00
import {parser} from "./parser.js"
2023-11-26 22:28:15 +00:00
const source = `
if foo
then do abcd
> xyz
>
else asdf
`
2023-11-26 18:32:25 +00:00
const parse = (source) => parser.parse(source.concat("\n"))
console.log(parse(source).toString())