Quantcast
Channel: Hacker News
Viewing all articles
Browse latest Browse all 10943

Article 35

$
0
0

Comments:""

URL:http://brycec.github.com/vizlamb/


This is a universal machine, using the untyped lambda calculus, visualized as a tree with d3.js. # is an abstraction. @ is application. Numbers are variables.

The syntax is a simplified version of the De Brujin index, meaning vars match to their Nth parent lambda (#), N being the var name. It requires explicit applications, ie you can't drop parens.

It gets parsed by a parser generated by PEG.js. Grammar and source on github.


Viewing all articles
Browse latest Browse all 10943

Trending Articles