User loginNavigation |
A Lisp to JavaScript Compiler in 100 LinesJavaScript occassionally gets some air time on LtU and after the most recent discussion of using CSS selectors for hooking up event handlers, I decided it was time to pick up JS. It's immediately quite clear that JS and Lisp have strong ties at the semantics level, so as a first project I thought it would be fun to code a small Lisp to JS compiler, in JS. It ended up being really small--about 100 lines of code for the core of the compiler. Not quite competitive with a SICP-style metacircular interpreter in lines of code but not too bad either. I thought you guys might get a kick out of it: By Per Vognsen at 2005-08-04 02:16 | LtU Forum | previous forum topic | next forum topic | other blogs | 23753 reads
|
Browse archivesActive forum topics |
Recent comments
2 days 5 hours ago
1 week 1 day ago
1 week 5 days ago
2 weeks 5 days ago
3 weeks 11 hours ago
3 weeks 11 hours ago
3 weeks 15 hours ago
4 weeks 11 hours ago
4 weeks 4 days ago
4 weeks 5 days ago