タグ

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

  • How to read macros

    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: The traditional w

    t-wada
    t-wada 2014/03/20
    sweet.js でリードマクロを実現する仕組みの解説エントリ。 lexer と parser の間に reader を挟みたいが悪魔が細部に宿る(割り算か正規表現か判別が困難)ので、それをどう解決したか。
  • 1