@wfalcon/cadence-parser
v0.0.17
Published
The Cadence parser
Downloads
5
Readme
Cadence Parser
The Cadence parser compiled to WebAssembly and bundled as an NPM package, so it can be used in tools written in JavaScript.
Usage
import {CadenceParser} from "@onflow/cadence-parser"
const parser = await CadenceParser.create("cadence-parser.wasm")
const ast = parser.parse(`
pub contract HelloWorld {
pub fun hello() {
log("Hello, world!")
}
}
`)