NPL语言Meta编译器 No.4684
已结束
招募角色:
金额¥30,000
类型
周期
30 天
报名人数 1 人
No.4684
已结束
NPL语言Meta编译器
其他
周期
30 天
金额 ¥30,000
技能领域
未指定技能领域
项目描述
NPL语言Meta编译器
- Extend NPL syntax with a LISP like AST structure.
- Compile *.npl source code into standard lua-compatible code (NOT byte code to support JIT) using AST (Compiler code needs to be written in NPL, please refer to metalua project)
- Add new NPL syntax to make NPL CAD language more expressive as a DSL (domain specific language)
Our goal is to support syntax like below in NPL cad.
translate(x,y,z){
for i=1, 4 do
rotate(i*45){ cube() }
end
}
The above *.npl code will be compiled to following lua-compatible code via meta programming
push()
translate(x,y,z)
for i=1, 4 do
push()
rotate(i*45);
cube()
pop()
end
pop()
相关文档
共上传1个文件,登录身份后方可查看下载
参考网站或产品
- https://github.com/tatfook/NPLCAD/wiki/MetaProgramming
- https://github.com/fab13n/metalua
招募要求
编译原理 Abstract Syntax Tree
不排斥使用我们的NPL语言开发