Owen Rodley [Tue, 9 Jul 2013 04:54:04 +0000 (16:54 +1200)]
Print relative pathnames when compiling test files
Previously absolute pathnames were printed, in contrast the the relative
pathnames printed when compiling the rest of the project.
Owen Rodley [Tue, 9 Jul 2013 04:52:00 +0000 (16:52 +1200)]
Modify the way source files are listed in *SOURCE*
Allow subdirectories by having a list rather than a keyword in the entry
for a file. For example, the entry:
("foo"
("bar" :HOST)
("baz" :BOTH))
includes the files `foo/bar.lisp' and `foo/baz.lisp'.
Subdirectories are processed recursively, so arbitrarily deeply nested
directories should work.
A simple DOLIST over *SOURCE* doesn't work any more, as the file list
has to be processed by GET-FILES first. The macro DO-SOURCE should be
used instead. All previous occurances of DOLIST were changed in the
previous commit with the introduction of DO-SOURCE.
Also removed trailing whitespace from compiler.lisp and codegen.lisp to
make my git pre-commit hook happy
Owen Rodley [Tue, 9 Jul 2013 00:28:58 +0000 (12:28 +1200)]
Add DO-SOURCE macro for iterating over source files
David Vázquez [Sun, 7 Jul 2013 23:30:40 +0000 (16:30 -0700)]
Merge pull request #135 from orodley/rplac-fix
RPLAC[AD] should return their first argument, not the second
Owen Rodley [Sun, 7 Jul 2013 21:32:54 +0000 (09:32 +1200)]
RPLAC[AD] should return their first argument, not the second
David Vázquez [Sun, 7 Jul 2013 11:56:36 +0000 (13:56 +0200)]
Ignore /debug on host
David Vázquez [Sun, 7 Jul 2013 11:55:48 +0000 (13:55 +0200)]
Merge branch 'codegen'
David Vázquez [Sat, 6 Jul 2013 13:18:26 +0000 (15:18 +0200)]
Some refactoring
David Vázquez [Sat, 6 Jul 2013 02:18:27 +0000 (04:18 +0200)]
Unescape some symbols
David Vázquez [Sat, 6 Jul 2013 02:02:56 +0000 (04:02 +0200)]
Fix FFI funcall
David Vázquez [Fri, 5 Jul 2013 23:58:31 +0000 (01:58 +0200)]
Remove CONVERT*
David Vázquez [Fri, 5 Jul 2013 23:37:46 +0000 (01:37 +0200)]
Remove comment
David Vázquez [Fri, 5 Jul 2013 23:34:58 +0000 (01:34 +0200)]
Remove some transitional changes
David Vázquez [Fri, 5 Jul 2013 23:32:51 +0000 (01:32 +0200)]
METHOD-CALL JS macro
David Vázquez [Fri, 5 Jul 2013 16:47:27 +0000 (18:47 +0200)]
Store intermediate variables as symbols instead of strings
David Vázquez [Fri, 5 Jul 2013 16:43:17 +0000 (18:43 +0200)]
Rename LS-COMPILE => CONVERT and LS-COMPILE-TOPLEVEL to COMPILE-TOPLEVEL
David Vázquez [Fri, 5 Jul 2013 16:35:27 +0000 (18:35 +0200)]
Remove CODE and transactional support in codegen for it
David Vázquez [Fri, 5 Jul 2013 16:32:57 +0000 (18:32 +0200)]
Remove js!selfcall
David Vázquez [Fri, 5 Jul 2013 16:31:55 +0000 (18:31 +0200)]
Remove CODE completely
David Vázquez [Fri, 5 Jul 2013 15:37:28 +0000 (17:37 +0200)]
Migrate compile-funcall
David Vázquez [Fri, 5 Jul 2013 15:32:45 +0000 (17:32 +0200)]
Migrate literals
David Vázquez [Fri, 5 Jul 2013 15:19:16 +0000 (17:19 +0200)]
Migrate toplevel code emitted as result of literals
David Vázquez [Fri, 5 Jul 2013 14:49:21 +0000 (16:49 +0200)]
Remove CODE use in convert-toplevel
David Vázquez [Fri, 5 Jul 2013 14:09:44 +0000 (16:09 +0200)]
Remove js!bool
David Vázquez [Fri, 5 Jul 2013 12:24:53 +0000 (14:24 +0200)]
Secondary value in js macroexpanders to inhibit macroexpansion
David Vázquez [Fri, 5 Jul 2013 12:22:52 +0000 (14:22 +0200)]
bool js macro replace js!bool
David Vázquez [Fri, 5 Jul 2013 12:19:09 +0000 (14:19 +0200)]
selfcall JS macro replace js!selfcall*
David Vázquez [Fri, 5 Jul 2013 12:10:19 +0000 (14:10 +0200)]
Codegen JS macros
David Vázquez [Fri, 5 Jul 2013 03:10:39 +0000 (05:10 +0200)]
Migrate special variable references
David Vázquez [Fri, 5 Jul 2013 03:06:59 +0000 (05:06 +0200)]
Remove type-check macro and its uses
David Vázquez [Fri, 5 Jul 2013 02:56:10 +0000 (04:56 +0200)]
Variable-arity
David Vázquez [Fri, 5 Jul 2013 02:53:05 +0000 (04:53 +0200)]
Migrate VARIABLE-ARITMETIC-CALL
David Vázquez [Fri, 5 Jul 2013 02:48:08 +0000 (04:48 +0200)]
Migrate MULTIPLE-VALUE-PROG1
David Vázquez [Fri, 5 Jul 2013 02:43:56 +0000 (04:43 +0200)]
Migrate APPLY
David Vázquez [Fri, 5 Jul 2013 02:38:56 +0000 (04:38 +0200)]
Migrate CONS
David Vázquez [Fri, 5 Jul 2013 02:36:30 +0000 (04:36 +0200)]
Remigrate MULTIPLE-VALUE-CALL (correctly)
David Vázquez [Fri, 5 Jul 2013 02:03:30 +0000 (04:03 +0200)]
Fix temporal bug in tagbody
David Vázquez [Fri, 5 Jul 2013 01:50:31 +0000 (03:50 +0200)]
Migrate MULTIPLE-VALUE-CALL
David Vázquez [Fri, 5 Jul 2013 01:32:55 +0000 (03:32 +0200)]
Migrate TAGBODY
David Vázquez [Fri, 5 Jul 2013 01:27:50 +0000 (03:27 +0200)]
Non-nested switch cases in codegen
David Vázquez [Fri, 5 Jul 2013 01:14:44 +0000 (03:14 +0200)]
Migrate GO
David Vázquez [Mon, 1 Jul 2013 02:31:53 +0000 (04:31 +0200)]
Migrate RETURN-FROM
David Vázquez [Mon, 1 Jul 2013 00:24:12 +0000 (02:24 +0200)]
Migrate keyword argument parsing
David Vázquez [Sun, 30 Jun 2013 15:29:00 +0000 (17:29 +0200)]
Optional arguments
David Vázquez [Sun, 30 Jun 2013 15:23:42 +0000 (17:23 +0200)]
SWITCH support
David Vázquez [Sun, 30 Jun 2013 14:42:48 +0000 (16:42 +0200)]
compile reswip: compile rest arguments
David Vázquez [Sun, 30 Jun 2013 14:38:15 +0000 (16:38 +0200)]
Migrate compile-lambda
David Vázquez [Sun, 30 Jun 2013 14:27:42 +0000 (16:27 +0200)]
let-binding-wrapper
David Vázquez [Sat, 29 Jun 2013 17:17:14 +0000 (19:17 +0200)]
LET
David Vázquez [Sat, 29 Jun 2013 16:38:30 +0000 (18:38 +0200)]
Migrate LABELS
David Vázquez [Sat, 29 Jun 2013 16:36:11 +0000 (18:36 +0200)]
FLET
David Vázquez [Sat, 29 Jun 2013 16:32:05 +0000 (18:32 +0200)]
Use destructuring-bind
David Vázquez [Sat, 29 Jun 2013 16:29:09 +0000 (18:29 +0200)]
Migrate VALUES-ARRAY and VALUES
David Vázquez [Sat, 29 Jun 2013 16:26:39 +0000 (18:26 +0200)]
Better GET and PROPERTY handling
David Vázquez [Sat, 29 Jun 2013 16:19:34 +0000 (18:19 +0200)]
CODEGEN: Use lexical variables instead of special ones
David Vázquez [Fri, 28 Jun 2013 20:39:34 +0000 (22:39 +0200)]
Fix bug with funcall precedence
David Vázquez [Thu, 27 Jun 2013 13:59:44 +0000 (15:59 +0200)]
Remove new compiler. It has its own branch
David Vázquez [Thu, 27 Jun 2013 13:59:14 +0000 (15:59 +0200)]
Migrate FUNCALL
David Vázquez [Thu, 27 Jun 2013 01:42:20 +0000 (03:42 +0200)]
Fix escaped symbol printing
David Vázquez [Thu, 27 Jun 2013 00:49:33 +0000 (02:49 +0200)]
Migrate CHARACTERP
David Vázquez [Thu, 27 Jun 2013 00:37:42 +0000 (02:37 +0200)]
Wrap non-trivial functions with parenthesis
David Vázquez [Wed, 26 Jun 2013 23:58:18 +0000 (01:58 +0200)]
Migrate %JS-VSET and %JS-VREF
David Vázquez [Mon, 24 Jun 2013 15:36:39 +0000 (17:36 +0200)]
Fix GET-INTERNAL-REAL-TIME
David Vázquez [Mon, 24 Jun 2013 15:32:40 +0000 (17:32 +0200)]
Remove some calls to CODE
David Vázquez [Mon, 24 Jun 2013 12:20:43 +0000 (14:20 +0200)]
Migrate MAP-FOR-IN
David Vázquez [Mon, 24 Jun 2013 12:17:56 +0000 (14:17 +0200)]
for-in
David Vázquez [Mon, 24 Jun 2013 12:16:40 +0000 (14:16 +0200)]
For loop
David Vázquez [Mon, 24 Jun 2013 12:13:15 +0000 (14:13 +0200)]
Migrate OSET*
David Vázquez [Mon, 24 Jun 2013 11:57:35 +0000 (13:57 +0200)]
Migrate OGET*
David Vázquez [Mon, 24 Jun 2013 11:44:07 +0000 (13:44 +0200)]
Migrate NEW
David Vázquez [Mon, 24 Jun 2013 11:20:04 +0000 (13:20 +0200)]
Migrate GET-INTERNAL-REAL-TIME
David Vázquez [Mon, 24 Jun 2013 11:18:17 +0000 (13:18 +0200)]
Migrate JS-EVAL
David Vázquez [Mon, 24 Jun 2013 11:17:10 +0000 (13:17 +0200)]
Fix bug in var initialization
Test case:
(js '(var (x (call foo 1 2 3))))
David Vázquez [Mon, 24 Jun 2013 01:04:12 +0000 (03:04 +0200)]
Migrate STRINGP
David Vázquez [Sun, 23 Jun 2013 20:47:40 +0000 (22:47 +0200)]
Migrate storage vector primitives
David Vázquez [Sun, 23 Jun 2013 19:44:51 +0000 (21:44 +0200)]
Migrate FUNCTIONP, %WRITE-STRING and /DEBUG
David Vázquez [Sun, 23 Jun 2013 19:34:17 +0000 (21:34 +0200)]
Migrate EQ, CHAR-UPCASE and CHAR-DOWNCASE
David Vázquez [Sun, 23 Jun 2013 19:32:25 +0000 (21:32 +0200)]
Migrate LAMBDA-CODE
David Vázquez [Sun, 23 Jun 2013 19:31:32 +0000 (21:31 +0200)]
Migrate SYMBOL-PLIST
David Vázquez [Sun, 23 Jun 2013 19:30:21 +0000 (21:30 +0200)]
Migrate SYMBOL-FUNCTION and SYMBOL-VALUE
David Vázquez [Sun, 23 Jun 2013 19:24:13 +0000 (21:24 +0200)]
Migrate BOUNDP and FBOUNDP
David Vázquez [Sun, 23 Jun 2013 19:22:49 +0000 (21:22 +0200)]
Support undefined
David Vázquez [Sun, 23 Jun 2013 19:21:40 +0000 (21:21 +0200)]
Migrate SET and FSET
David Vázquez [Sun, 23 Jun 2013 19:18:41 +0000 (21:18 +0200)]
Migrate SYMBOLP, MAKE-SYMBOL and SYMBOL-NAME.
David Vázquez [Sun, 23 Jun 2013 19:15:10 +0000 (21:15 +0200)]
Migrate CAR and CDR
David Vázquez [Sun, 23 Jun 2013 19:10:16 +0000 (21:10 +0200)]
Migrate CONS
David Vázquez [Sun, 23 Jun 2013 19:04:29 +0000 (21:04 +0200)]
Migrate some arithmetic primitives
David Vázquez [Sun, 23 Jun 2013 15:14:56 +0000 (17:14 +0200)]
Migrate UNWIND-PROTECT
David Vázquez [Sun, 23 Jun 2013 15:11:28 +0000 (17:11 +0200)]
Migrate CATCH/THROW
David Vázquez [Sun, 23 Jun 2013 14:35:03 +0000 (16:35 +0200)]
TRY-CATCH-FINALLY support in codegen
David Vázquez [Sun, 23 Jun 2013 14:27:52 +0000 (16:27 +0200)]
Migrate PROGN
David Vázquez [Sun, 23 Jun 2013 14:26:27 +0000 (16:26 +0200)]
Remove unnecesary CODE
David Vázquez [Sun, 23 Jun 2013 14:25:18 +0000 (16:25 +0200)]
Migrate SETQ
David Vázquez [Sun, 23 Jun 2013 14:09:09 +0000 (16:09 +0200)]
Migrate DUMP-CONS
David Vázquez [Sun, 23 Jun 2013 13:36:54 +0000 (15:36 +0200)]
Migrate DUMP-SYMBOL
David Vázquez [Sun, 23 Jun 2013 13:32:38 +0000 (15:32 +0200)]
Migrate DUMP-ARRAY
David Vázquez [Sun, 23 Jun 2013 13:30:12 +0000 (15:30 +0200)]
Migrate %WHILE
David Vázquez [Sun, 23 Jun 2013 13:29:06 +0000 (15:29 +0200)]
Migrate LAMBDA-NAME/DOCSTRING-WRAPPER
David Vázquez [Sun, 23 Jun 2013 13:25:26 +0000 (15:25 +0200)]
Merge branch 'master' into codegen-migration
David Vázquez [Sun, 23 Jun 2013 13:25:14 +0000 (15:25 +0200)]
Fix MAPC