微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

太极语言

程序名称:太极语言

授权协议: GPL

操作系统: 跨平台

开发语言: JavaScript

太极语言 介绍

一门新的编程语言,编译成javascript,
运行于node.js环境,支持元语言(lisp风格的宏是元语言的特例),动态语法。

示例代码

// #1+2 and #3+4 is evaluated in compiling time:
  if 1 then #1+2 else #3+4
// the condition of "if" statemeng is evaluated in compiling time
// when the condition is true, "then" clause is compiled, else "else" clause is compiled. 
// this is similar to the #if in C language.
  # if 1 then 1+2 else 3+4
// different from the above sample, the whole "if" statement below is evaluated in the compiling time
  ## if 1 then 1+2 else 3+4

太极语言 官网

https://github.com/taijiweb/taijilang

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐