Terra低级系统编程语言
Terra 是一个新的低级系统编程语言,旨在实现无缝的与Lua编程语言协作。
示例代码:
-- This top-level code is plain Lua code. print("Hello, Lua!") -- Terra is backwards compatible with C -- we'll use C's io library in our example. C = terralib.includec("stdio.h") -- The keyword 'terra' introduces -- a new Terra function. terra hello(argc : int, argv : &rawstring) -- Here we call a C function from Terra C.printf("Hello, Terra!\n") return 0 end -- You can call Terra functions directly from Lua hello(0,nil) -- Or, you can save them to disk as executables or .o -- files and link them into existing programs terralib.saveobj("helloterra",{ main = hello })
评论
Terra低级系统编程语言
Terra是一个新的低级系统编程语言,旨在实现无缝的与Lua编程语言协作。示例代码:--Thistop-levelcodeisplainLuacode.print("Hello,Lua!")--Ter
Terra低级系统编程语言
0
Loci系统编程语言
Loci是一个多范式的系统编程语言,使用更直观的方式描述,跟C++很类似。Loci并不是为了弥补C++的某些不足而推出,同时引入全新范式和编程风格,这些对开发者来说非常方便。此外在性能上Loci也没有
Loci系统编程语言
0
Dale系统编程语言
Dale是一个系统编程语言,使用S-表达式作为语法,支持语义宏。基本语言类似C,提供如下额外特性:局部类型推导重载功能;匿名功能;参考参数;初始化程序和析构函数;变体命名空间;模块;conceptsc
Dale系统编程语言
0