| 1 | (in-package :cl-user) |
| 2 | |
| 3 | (defpackage :js |
| 4 | (:use :common-lisp) |
| 5 | (:export |
| 6 | ;; addition js symbols |
| 7 | #:new |
| 8 | |
| 9 | ;; literals |
| 10 | #:t |
| 11 | #:nil |
| 12 | #:this |
| 13 | #:false |
| 14 | #:undefined |
| 15 | |
| 16 | ;; keywords |
| 17 | #:break |
| 18 | #:continue |
| 19 | |
| 20 | ;; array literals |
| 21 | #:array |
| 22 | #:list |
| 23 | #:aref |
| 24 | #:make-array |
| 25 | |
| 26 | ;; operators |
| 27 | #:! #:not #:~ |
| 28 | #:* #:/ #:% |
| 29 | #:+ #:- |
| 30 | #:<< #:>> |
| 31 | #:>>> |
| 32 | #:< #:> #:<= #:>= |
| 33 | #:in |
| 34 | #:eql #:== #:!= #:= |
| 35 | #:=== #:!== |
| 36 | #:& |
| 37 | #:^ |
| 38 | #:\| |
| 39 | #:\&\& #:and |
| 40 | #:\|\| #:or |
| 41 | #:>>= #:<<= |
| 42 | #:*= #:/= #:%= #:+= #:\&= #:^= #:\|= #:~= |
| 43 | #:++ #:-- |
| 44 | #:1+ #:1- |
| 45 | #:incf #:decf |
| 46 | |
| 47 | ;; body forms |
| 48 | #:progn |
| 49 | |
| 50 | ;; function definition |
| 51 | #:defun |
| 52 | #:lambda |
| 53 | |
| 54 | ;; object literals |
| 55 | #:create |
| 56 | #:slot-value |
| 57 | #:with-slots |
| 58 | |
| 59 | ;; macros |
| 60 | #:macrolet |
| 61 | #:symbol-macrolet |
| 62 | |
| 63 | ;; lisp eval |
| 64 | #:lisp |
| 65 | |
| 66 | ;; if |
| 67 | #:if |
| 68 | #:when |
| 69 | #:unless |
| 70 | |
| 71 | ;; single argument statements |
| 72 | #:return |
| 73 | #:throw |
| 74 | |
| 75 | ;; single argument expressions |
| 76 | #:delete |
| 77 | #:void |
| 78 | #:typeof |
| 79 | #:instanceof |
| 80 | #:new |
| 81 | |
| 82 | ;; assignment |
| 83 | #:setf |
| 84 | |
| 85 | ;; variables |
| 86 | #:defvar |
| 87 | #:let |
| 88 | |
| 89 | ;; iteration |
| 90 | #:do |
| 91 | #:dotimes |
| 92 | #:dolist |
| 93 | #:doeach |
| 94 | #:while |
| 95 | |
| 96 | ;; with |
| 97 | #:with |
| 98 | |
| 99 | ;; case |
| 100 | #:case |
| 101 | #:default |
| 102 | |
| 103 | ;; try throw catch |
| 104 | #:try |
| 105 | |
| 106 | ;; regex literals |
| 107 | #:regex |
| 108 | |
| 109 | ;; conditional compilation (IE) |
| 110 | #:cc-if |
| 111 | |
| 112 | ;; math library |
| 113 | #:floor |
| 114 | #:random |
| 115 | |
| 116 | ;; html generator for javascript |
| 117 | #:html |
| 118 | |
| 119 | ;; compiler |
| 120 | #:js-compile |
| 121 | #:js |
| 122 | #:js* |
| 123 | #:js-inline |
| 124 | #:js-inline* |
| 125 | #:js-file |
| 126 | #:js-script |
| 127 | #:js-to-strings |
| 128 | #:js-to-statement-strings |
| 129 | #:js-to-string |
| 130 | #:js-to-line |
| 131 | |
| 132 | ;; util |
| 133 | #:with-unique-js-names |
| 134 | #:gen-js-name |
| 135 | #:gen-js-name-string |
| 136 | |
| 137 | ;; CSS |
| 138 | #:css |
| 139 | #:css-to-string |
| 140 | #:css-inline |
| 141 | #:css-file |
| 142 | |
| 143 | )) |