@onflow/cadence-parser
v1.0.0-preview.50
Published
The Cadence parser
Downloads
261
Maintainers
Keywords
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!")
}
}
`)