X-Git-Url: http://git.hcoop.net/clinton/parenscript.git/blobdiff_plain/170ee9ab90690ebe89cade2bae25ecbdf7472c11..5ffb1ebaaff5e8f899fd4b1bd91b015f2c52d656:/src/package.lisp diff --git a/src/package.lisp b/src/package.lisp index ac0280d..41fbb6a 100644 --- a/src/package.lisp +++ b/src/package.lisp @@ -42,6 +42,9 @@ #:>>= #:<<= #:*= #:/= #:%= #:+= #:\&= #:^= #:\|= #:~= #:incf #:decf + + ;; compile-time stuff + #:eval-when ;; body forms #:progn @@ -72,10 +75,6 @@ #:psetf #:setq #:psetq - #:simple-let* - #:simple-let - #:lexical-let* - #:lexical-let #:let* #:let @@ -217,6 +216,7 @@ )) (defparameter *parenscript-interface-exports* '(;; compiler + #:*js-target-version* #:compile-script #:ps #:ps-doc @@ -225,7 +225,8 @@ #:ps1* #:ps-inline #:ps-inline* - + #:ps-compile-file + #:ps-compile-stream ;; for parenscript macro definition within lisp #:defpsmacro #:defmacro/ps @@ -265,35 +266,101 @@ )) (defparameter *javascript-exports* - '(;; for representing js code as s-expressions - #:? - #:if - #:unary-operator + '(;;; for representing js code as s-expressions + + ;; operators + ; arithmetic + #:+ + #:- + #:* + #:/ + #:% + + ; bitwise + #:& + #:|\|| + #:^ + #:~ + #:>> + #:<< + #:>>> + + ; assignment + #:= + #:+= + #:-= + #:*= + #:/= + #:%= + #:&= + #:\|= + #:^+ + #:>>= + #:<<= + #:>>>= + + ; increment/decrement + #:++ #:-- + + ; comparison + #:== + #:=== + #:!= + #:!== + #:> + #:>= + #:< + #:<= + + ; logical + #:&& + #:|||| #:! + + ; misc + #:? ; ternary + #:|,| + #:delete + #:function + #:get + #:in + #:instanceof + #:new + #:this + #:typeof + #:void + + + ;; statements #:block - #:literal #:break #:continue + #:do-while + #:for + #:for-in + #:if + #:label #:return + #:switch #:throw + #:try + #:var + #:while + #:with + + + #:unary-operator + #:literal #:array #:aref - #:++ - #:+= #:operator - #:-= - #:- - #:= #:cond #:lambda #:object #:variable #:slot-value - #:new #:funcall - #:instanceof - #:in #:escape )) )