You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
309 B
16 lines
309 B
"use strict"
|
|
|
|
var bake = require("cwise-bake")
|
|
|
|
console.log("module.exports=require('cwise-compiler')(" + JSON.stringify(
|
|
bake({
|
|
args: ["array", "scalar", "index"],
|
|
body: function(o, a, x) {
|
|
var v=a,i
|
|
for(i=0;i<x.length-1;++i) {
|
|
v=v[x[i]]
|
|
}
|
|
o=v[x[x.length-1]]
|
|
},
|
|
funcName: "convert"
|
|
})) + ")") |