http://squirrel-lang.org/doc/squirrel2.html
转自我的cnblogs
最近在搜索AngleScript bug时,突然发现一个新的轻量级OO脚本语言Squirrel 翻译过来就是松鼠的意思
来看下这个脚本的样子:
local table = { a = "10" subtable = { array = [1,2,3] }, [10 + 123] = "expression index"} local array=[ 1, 2, 3, { a = 10, b = "string" } ];foreach(i,val in array){ ::print("the type of val is"+typeof val);}
class Entity{ constructor(etype,entityname) { name = entityname; type = etype; } x = 0; y = 0; z =......
阅读全文