gkz / LiveScript

LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.
http://livescript.net
MIT License
2.31k stars 155 forks source link

Documentation lacking on Node API #556

Open dead-claudia opened 10 years ago

dead-claudia commented 10 years ago

This is one thing that is relatively nonexistent on the site, and is hard to find elsewhere. I know that there is LiveScript.compile() and LiveScript.run(), but here's all I've figured out so far:

This would be really useful information, especially when writing build scripts or just compiling/interpreting it on the fly if need be (and not just Grunt/Gulp/etc).

Also, just explaining it here I don't find sufficient...it really belongs on the website as well.

dead-claudia commented 10 years ago

Here's what I found so far poking around src/ast.ls. I haven't labelled any types beside sub-objects.

o:
  level
  indent
  saveScope
  filename
  bare
  eval
  loop
  labels
  break
  continue
  ref:
    erred
  block:
    scope
  scope:
    assign
    free
    temporary
    check
    checkReadOnly
    declare
    fun:
      bound
      name