Eisa 近况

巨坑地址:http://github.com/infinte/eisa

  • 把「两个」代码生成器合并了不少,主要是表达式的部分。原来 LFC 里,非阻塞的函数和连续体的代码生成器是分开的,然而很多段代码都大同小异(就是 transform 和 expPart 的区别,这两个函数都是进行递归变换的函数,不过行为不同),现在合并了。
  • 现在的 LFC 里,全局变量必须手工指定,以后会简化设置它的方法,比如允许 JavaScript 全局变量直接绑定到 lofn 的顶层函数里
  • 文档这个巨坑慢慢填罢

顺便贴个东西:用源码的面积计算 pi 复刻版:

var c = 0; var l = 0
def x(n) = (c += (2 if (n == x), 1)) then (l = n if(l < n), l) then (n + 1)
def x.valueOf = {1}
              x x x x x
         x x x x x x x x x x
      x x x x x x x x x x x x x
   x x x x x x x x x x x x x x x x
  x x x x x x x x x x x x x x x x x
  x x x x x x x x x x x x x x x x x
 x x x x x x x x x x x x x x x x x x
 x x x x x x x x x x x x x x x x x x
 x x x x x x x x x x x x x x x x x x
 x x x x x x x x x x x x x x x x x x
  x x x x x x x x x x x x x x x x x
  x x x x x x x x x x x x x x x x x
   x x x x x x x x x x x x x x x x
      x x x x x x x x x x x x x
          x x x x x x x x x
              x x x x x
4 * c / l / l // result

Edit: 果然我很习惯改语法…… ~~ 改成 then

This entry was posted in Original, 中文. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted February 8, 2012 at 10:47 am | Permalink

    http://www.kdbj.net,http://typeof.net/ 博主换 友情链接么?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>