Deprecated DO-SET-TIMEOUT.
[parenscript.git] / src / package.lisp
blob53d0e4f3a4c6eb9795bf8d1e3af3fc381287551d
1 (in-package "CL-USER")
3 (defpackage "PARENSCRIPT"
4 (:use "COMMON-LISP" "ANAPHORA")
5 (:nicknames "PS")
6 (:export
7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8 ;;; Compiler interface
10 ;; compiler
11 #:*js-target-version*
12 #:ps
13 #:*parenscript-stream*
14 #:ps-to-stream
15 #:ps-doc
16 #:ps-doc*
17 #:ps*
18 #:ps-inline
19 #:ps-inline*
20 #:*ps-read-function*
21 #:ps-compile-file
22 #:ps-compile-stream
23 ;; for parenscript macro definition within lisp
24 #:defpsmacro
25 #:defmacro+ps
26 #:import-macros-from-lisp
28 ;; gensym
29 #:ps-gensym
30 #:with-ps-gensyms
31 #:ps-once-only
32 #:*ps-gensym-counter*
34 ;; naming and namespaces
35 #:ps-package-prefix
36 #:obfuscate-package
37 #:unobfuscate-package
39 ;; printer
40 #:symbol-to-js-string
41 #:*js-string-delimiter*
42 #:*js-inline-string-delimiter*
43 #:*ps-print-pretty*
44 #:*indent-num-spaces*
46 ;; deprecated interface
47 #:define-script-symbol-macro
48 #:gen-js-name
49 #:with-unique-js-names
50 #:defjsmacro
51 #:js-compile
52 #:js-inline
53 #:js-inline*
54 #:js
55 #:js*
56 #:symbol-to-js
57 #:slot-value
58 #:compile-script
59 #:defmacro/ps
60 #:%
61 #:==
62 #:===
63 #:!=
64 #:!==
65 #:labeled-for
66 #:do-set-timeout
68 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
69 ;;; Language
71 ;; literals
72 #:t
73 #:f
74 #.(symbol-name 'nil) ; for case-sensitive Lisps like some versions of Allegro
75 #:this
76 #:undefined
77 #:{}
79 ;; keywords
80 #:break
81 #:continue
83 ;; array literals
84 #:array
85 #:list
86 #:aref
87 #:elt
88 #:make-array
89 #:[]
91 ;; operators
92 ;; logical boolean
93 #:not
94 #:and
95 #:or
97 ;; bitwise boolean
98 #:logand
99 #:logior
100 #:logxor
101 #:lognot
105 #:rem
110 #:<=
111 #:>=
112 #:incf
113 #:decf
114 #:equal
115 #:eql
116 #:eq
119 ;; compile-time stuff
120 #:eval-when
122 ;; body forms
123 #:progn
125 ;; object literals
126 #:create
127 #:with-slots
129 ;; if
130 #:if
131 #:when
132 #:unless
134 ;; single argument statements
135 #:return
136 #:throw
138 ;; single argument expressions
139 #:delete
140 #:typeof
141 #:instanceof
142 #:new
144 ;; assignment and binding
145 #:setf
146 #:defsetf
147 #:psetf
148 #:setq
149 #:psetq
150 #:let*
151 #:let
153 ;; variables
154 #:var
155 #:defvar
157 ;; iteration
158 #:label
159 #:for
160 #:for-in
161 #:while
162 #:do
163 #:do*
164 #:dotimes
165 #:dolist
166 #:loop
168 ;; with
169 #:with
171 ;; case
172 #:switch
173 #:case
174 #:default
176 ;; try throw catch
177 #:try
179 ;; regex literals
180 #:regex
182 ;; function definition
183 #:defun
184 #:lambda
185 #:flet
186 #:labels
188 ;; lambda lists
189 #:&key
190 #:&rest
191 #:&body
192 #:&optional
193 #:&aux
194 #:&environment
195 #:&key-object
197 ;; slot access
198 #:with-slots
199 #:getprop
200 #:in
202 ;; macros
203 #:macrolet
204 #:symbol-macrolet
205 #:define-symbol-macro
206 #:define-ps-symbol-macro
207 #:defmacro
209 ;; lisp eval
210 #:lisp
212 ;; v v v STUFF WE SHOULD PROBABLY MOVE TO OTHER LIBS v v v
214 ;; html generator for javascript
215 #:*ps-html-empty-tag-aware-p*
216 #:*ps-html-mode*
217 #:ps-html
218 #:who-ps-html
220 ;; utils
221 #:max
222 #:min
223 #:floor
224 #:ceiling
225 #:round
226 #:sin
227 #:cos
228 #:tan
229 #:asin
230 #:acos
231 #:atan
232 #:pi
233 #:sinh
234 #:cosh
235 #:tanh
236 #:asinh
237 #:acosh
238 #:atanh
239 #:1+
240 #:1-
241 #:abs
242 #:evenp
243 #:oddp
244 #:exp
245 #:expt
246 #:log
247 #:sqrt
248 #:random
249 #:ignore-errors
250 #:concatenate
251 #:concat-string
252 #:length
253 #:defined
254 #:undefined
256 #:chain
257 #:stringp
258 #:numberp
259 #:functionp
260 #:objectp
261 #:append
262 #:apply
263 #:destructuring-bind
265 ;; DOM accessing utils
266 #:inner-html
267 #:uri-encode
268 #:attribute
269 #:offset
270 #:scroll
271 #:inner
272 #:client
274 ;; js runtime utils
275 #:*ps-lisp-library*
276 #:mapcar
277 #:map-into
278 #:map
279 #:member
280 #:append
281 #:set-difference
285 (defpackage "JS"
286 (:shadowing-import-from
287 "COMMON-LISP"
291 #:/)
292 (:export
293 ;; operators
294 ;; arithmetic
297 #:negate
302 ;; bitwise
304 #:\|
307 #:>>
308 #:<<
309 #:>>>
311 ;; assignment
313 #:+=
314 #:-=
315 #:*=
316 #:/=
317 #:%=
318 #:&=
319 #:\|=
320 #:^=
321 #:~=
322 #:>>=
323 #:<<=
324 #:>>>=
326 ;; increment/decrement
327 #:++
328 #:--
329 #:post++
330 #:post--
332 ;; comparison
333 #:==
334 #:===
335 #:!=
336 #:!==
338 #:>=
340 #:<=
342 ;; logical
343 #:&&
344 #:\|\|
347 ;; misc
348 #:? ;; ternary
349 #:|,|
350 #:delete
351 #:function
352 #:get
353 #:in
354 #:instanceof
355 #:new
356 #:typeof
357 #:void
359 ;; literals
360 #:nil
363 #:undefined
364 #:this
366 ;; statements
367 #:block
368 #:break
369 #:continue
370 #:do-while
371 #:for
372 #:for-in
373 #:if
374 #:label
375 #:return
376 #:switch
377 #:default
378 #:throw
379 #:try
380 #:var
381 #:while
382 #:with
384 #:array
385 #:aref
386 #:cond
387 #:lambda
388 #:defun
389 #:object
390 #:getprop
391 #:funcall
392 #:escape
393 #:regex