【文件属性】:
文件名称:v9:用Go编写JavaScript解释器
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-15 20:50:33
Go
v9
用Go编写JavaScript解释器,并自称为Google 继承者。
在期间创建。
安装
安装Go和
“制作”
例子
该示例将按预期在v9中运行,并大致显示周末完成的工作。
var i = 3;
var j = 3;
while (i) {
j = 3;
while (j) {
log(j);
j = j - 1;
}
i = i - 1;
}
if (true) {
if ("this string is true") {
if (5.5) {
log("this should print");
}
}
}
if ("") {
log("should not print");
}
var ex = function() {
log("in a function");
};
i = 3;
while
【文件预览】:
v9-master
----example.js(650B)
----ast.go(5KB)
----v9.nex(903B)
----v9.y(4KB)
----README.md(1KB)
----Makefile(197B)
----variable.go(3KB)