タグ

ブックマーク / www.disnetdev.com (1)

  • How to read macros

    20 December 2012 In my last post I gave a little overview of sweet.js the hygienic macro system I built over the summer. Today I want to write a little bit about what makes sweet.js possible and why we haven't really seen a macro system for JavaScript before now. I gave hints at some of this in my intern talk but now we can finally do a deep dive! Basics # First, let's take a look at compilers 101

    efcl
    efcl 2012/12/22
    Sweet.jsの code -> lexer -> tokens -reader -> read tree -> parser -> ASTについて regexpとコメントについて
  • 1