Skip to content

Instantly share code, notes, and snippets.

@jaredhirsch
Created March 8, 2013 19:50
Show Gist options
  • Save jaredhirsch/5119300 to your computer and use it in GitHub Desktop.
Save jaredhirsch/5119300 to your computer and use it in GitHub Desktop.
  1. javascript + source map.
  2. create a macro that modifies js syntax.
  3. use the macro.
  4. need to regenerate the underlying code + underlying source map.

so it isn't really dynamic.

but if you define source maps, does that mean you can read coffeescript (say) but be editing javascript?

idk if source maps' output gets recycled back into the running interpreter. I think it's just for debugging.

but if you wrote an arbitrary system for generating source maps from a parser definition, well damn. that'd be neat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment