/compiler

js compiler: tokenizer & aster

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Compiler

词法分析和 ast

用法:

const compiler = require('compiler')

const input = "eval { head { 1 2 3 4} }"
const ast = compiler.compiler(input)

// 或者
const ast = compiler.loadfile("hello.lsp")

更具体见test.js