jscl.git
10 years agoSimple DEFPACKAGE. defpackage
Olof-Joachim Frahm [Tue, 3 Sep 2013 15:52:23 +0000 (17:52 +0200)]
Simple DEFPACKAGE.

Also handles multiple :USE definitions in DEFPACKAGE.

10 years agoNAME is a string designator.
Olof-Joachim Frahm [Tue, 3 Sep 2013 16:00:44 +0000 (18:00 +0200)]
NAME is a string designator.

10 years agoAdd GET-PROPERTIES, GETF and (SETF GETF).
Olof-Joachim Frahm [Tue, 3 Sep 2013 15:43:06 +0000 (17:43 +0200)]
Add GET-PROPERTIES, GETF and (SETF GETF).

The SETF expander for GETF is weird though.

10 years agoAdd RPLACA/D as functions.
Olof-Joachim Frahm [Tue, 3 Sep 2013 15:42:50 +0000 (17:42 +0200)]
Add RPLACA/D as functions.

10 years agoCloses #145 fixing keyword dumping
David Vázquez [Tue, 3 Sep 2013 19:24:51 +0000 (21:24 +0200)]
Closes #145 fixing keyword dumping

10 years agoAdd FUNCALL, APPLY tests.
Olof-Joachim Frahm [Tue, 3 Sep 2013 07:35:23 +0000 (09:35 +0200)]
Add FUNCALL, APPLY tests.

10 years agoAdd FUNCALL and APPLY as functions.
Olof-Joachim Frahm [Mon, 2 Sep 2013 13:41:32 +0000 (15:41 +0200)]
Add FUNCALL and APPLY as functions.

10 years agoMerge pull request #144 from Ferada/apropos package-improvements
David Vázquez [Mon, 2 Sep 2013 20:10:06 +0000 (13:10 -0700)]
Merge pull request #144 from Ferada/apropos

Use CHAR-EQUAL and STRING for APROPOS.

10 years agoUse CHAR-EQUAL and STRING for APROPOS. apropos
Olof-Joachim Frahm [Mon, 2 Sep 2013 13:17:30 +0000 (15:17 +0200)]
Use CHAR-EQUAL and STRING for APROPOS.

First argument is a string designator.  Comparing strings with
CHAR-EQUAL is more reasonable than using CHAR=.

10 years agoFix variable-arity multiplication and so read-float
David Vázquez [Sat, 31 Aug 2013 00:13:10 +0000 (02:13 +0200)]
Fix variable-arity multiplication and so read-float

10 years agoReorder file loading and fix define-setf-expander
David Vázquez [Fri, 30 Aug 2013 23:37:42 +0000 (01:37 +0200)]
Reorder file loading and fix define-setf-expander

10 years agoFix SETF semantics at compile-time
David Vázquez [Fri, 30 Aug 2013 19:40:04 +0000 (21:40 +0200)]
Fix SETF semantics at compile-time

10 years agoTidy basic setf-macros
David Vázquez [Fri, 30 Aug 2013 19:16:30 +0000 (21:16 +0200)]
Tidy basic setf-macros

10 years agoRemove eval-when-compile
David Vázquez [Fri, 30 Aug 2013 18:59:16 +0000 (20:59 +0200)]
Remove eval-when-compile

10 years agoUse eval-when instead of eval-when-compile
David Vázquez [Fri, 30 Aug 2013 18:58:11 +0000 (20:58 +0200)]
Use eval-when instead of eval-when-compile

10 years agodefconstant uses eval-when
David Vázquez [Fri, 30 Aug 2013 18:56:47 +0000 (20:56 +0200)]
defconstant uses eval-when

10 years agoConvert toplevel macroexpands its input
David Vázquez [Fri, 30 Aug 2013 18:56:32 +0000 (20:56 +0200)]
Convert toplevel macroexpands its input

10 years agodefmacro expansion uses eval-when
David Vázquez [Thu, 29 Aug 2013 16:45:09 +0000 (18:45 +0200)]
defmacro expansion uses eval-when

10 years agoAdd eval-when special form
David Vázquez [Thu, 29 Aug 2013 16:08:06 +0000 (18:08 +0200)]
Add eval-when special form

10 years agoFix bug printing uninterned symbols
David Vázquez [Thu, 29 Aug 2013 14:06:56 +0000 (16:06 +0200)]
Fix bug printing uninterned symbols

10 years agoRevert asynchronous tests
David Vázquez [Thu, 29 Aug 2013 13:22:36 +0000 (15:22 +0200)]
Revert asynchronous tests

10 years agoExecute tests asynchronously to let the browser to render
David Vázquez [Thu, 29 Aug 2013 13:09:07 +0000 (15:09 +0200)]
Execute tests asynchronously to let the browser to render

10 years agoMerge pull request #142 from Ferada/pretty-print
David Vázquez [Thu, 29 Aug 2013 13:50:09 +0000 (06:50 -0700)]
Merge pull request #142 from Ferada/pretty-print

Newlines after semicolons if *PRETTY-PRINT* is set.

10 years agoSimpler printer
David Vázquez [Thu, 29 Aug 2013 12:50:37 +0000 (14:50 +0200)]
Simpler printer

10 years agoNewlines after semicolons if *PRETTY-PRINT* is set. pretty-print
Olof-Joachim Frahm [Wed, 21 Aug 2013 16:59:19 +0000 (18:59 +0200)]
Newlines after semicolons if *PRETTY-PRINT* is set.

This is meant as a start to get more managable Javascript output, i.e.
while debugging in Firefox.

10 years agowrite-to-string is available at host via !write-to-string
David Vázquez [Thu, 29 Aug 2013 11:00:17 +0000 (13:00 +0200)]
write-to-string is available at host via !write-to-string

10 years agoClean warning at bootstrap
David Vázquez [Thu, 29 Aug 2013 10:21:36 +0000 (12:21 +0200)]
Clean warning at bootstrap

10 years agoMove documentation function to src/documentation.lisp
David Vázquez [Thu, 29 Aug 2013 10:19:14 +0000 (12:19 +0200)]
Move documentation function to src/documentation.lisp

10 years agoMerge pull request #140 from Ferada/search
David Vázquez [Thu, 29 Aug 2013 11:13:21 +0000 (04:13 -0700)]
Merge pull request #140 from Ferada/search

Add ELT, SEARCH, MISMATCH and APROPOS, DOCUMENTATION.

10 years agoUse EXTERNAL-ONLY for APROPOS and friends. search
Olof-Joachim Frahm [Wed, 21 Aug 2013 18:05:14 +0000 (20:05 +0200)]
Use EXTERNAL-ONLY for APROPOS and friends.

10 years agoAdd EXTERNAL-ONLY (as seen in SBCL).
Olof-Joachim Frahm [Wed, 21 Aug 2013 18:04:55 +0000 (20:04 +0200)]
Add EXTERNAL-ONLY (as seen in SBCL).

10 years agoHandle unknown FORMAT specifiers for now.
Olof-Joachim Frahm [Wed, 21 Aug 2013 18:04:06 +0000 (20:04 +0200)]
Handle unknown FORMAT specifiers for now.

10 years agoWARN should accept FORMAT-like arguments.
Olof-Joachim Frahm [Wed, 21 Aug 2013 18:03:51 +0000 (20:03 +0200)]
WARN should accept FORMAT-like arguments.

10 years agoFix FORMAT specifier X.
Olof-Joachim Frahm [Wed, 21 Aug 2013 18:03:07 +0000 (20:03 +0200)]
Fix FORMAT specifier X.

10 years agoLoad documentation.lisp.
Olof-Joachim Frahm [Thu, 15 Aug 2013 17:28:49 +0000 (19:28 +0200)]
Load documentation.lisp.

10 years agoPreliminary DOCUMENTATION, APROPOS and friends.
Olof-Joachim Frahm [Thu, 6 Jun 2013 21:53:31 +0000 (23:53 +0200)]
Preliminary DOCUMENTATION, APROPOS and friends.

10 years agoAdd Tilde D: Decimal to FORMAT.
Olof-Joachim Frahm [Mon, 10 Jun 2013 19:31:41 +0000 (21:31 +0200)]
Add Tilde D: Decimal to FORMAT.

10 years agoAdd SEARCH, MISMATCH testcases.
Olof-Joachim Frahm [Mon, 10 Jun 2013 19:18:09 +0000 (21:18 +0200)]
Add SEARCH, MISMATCH testcases.

10 years agoAdd SEARCH and stuff.
Olof-Joachim Frahm [Mon, 10 Jun 2013 09:21:57 +0000 (11:21 +0200)]
Add SEARCH and stuff.

10 years agoAdd LIST, SEQUENCE to TYPECASE.
Olof-Joachim Frahm [Mon, 10 Jun 2013 09:21:15 +0000 (11:21 +0200)]
Add LIST, SEQUENCE to TYPECASE.

10 years agoAdd SEQUENCEP.
Olof-Joachim Frahm [Mon, 10 Jun 2013 09:21:42 +0000 (11:21 +0200)]
Add SEQUENCEP.

10 years agoMerge pull request #139 from Ferada/small-fixes clhs-links
David Vázquez [Tue, 20 Aug 2013 11:43:41 +0000 (04:43 -0700)]
Merge pull request #139 from Ferada/small-fixes

Fix MAP-FOR-IN/DO-SYMBOLS..., add TERPRI.

10 years agoAdd and use TERPRI.
Olof-Joachim Frahm [Mon, 19 Aug 2013 23:32:01 +0000 (01:32 +0200)]
Add and use TERPRI.

10 years agoFix MAP-FOR-IN access.
Olof-Joachim Frahm [Mon, 19 Aug 2013 23:30:21 +0000 (01:30 +0200)]
Fix MAP-FOR-IN access.

Which should iterate over properties of a Javascript object.

10 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Mon, 5 Aug 2013 18:27:51 +0000 (20:27 +0200)]
Merge branch 'master' of github.com:davazp/jscl

10 years agoMerge pull request #136 from orodley/source-changes
David Vázquez [Tue, 9 Jul 2013 21:34:05 +0000 (14:34 -0700)]
Merge pull request #136 from orodley/source-changes

Allow source files to be contained within subdirectories

10 years agoPrint relative pathnames when compiling test files
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.

10 years agoModify the way source files are listed in *SOURCE*
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

10 years agoAdd DO-SOURCE macro for iterating over source files
Owen Rodley [Tue, 9 Jul 2013 00:28:58 +0000 (12:28 +1200)]
Add DO-SOURCE macro for iterating over source files

10 years agoMerge pull request #135 from orodley/rplac-fix
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

10 years agoRPLAC[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

10 years agoRemove *newline* variable
David Vázquez [Sun, 7 Jul 2013 12:08:23 +0000 (14:08 +0200)]
Remove *newline* variable

10 years agoUse #\newline instead of *newline*
David Vázquez [Sun, 7 Jul 2013 12:07:22 +0000 (14:07 +0200)]
Use #\newline instead of *newline*

10 years agoIgnore /debug on host
David Vázquez [Sun, 7 Jul 2013 11:56:36 +0000 (13:56 +0200)]
Ignore /debug on host

10 years agoMerge branch 'codegen'
David Vázquez [Sun, 7 Jul 2013 11:55:48 +0000 (13:55 +0200)]
Merge branch 'codegen'

10 years agoSome refactoring
David Vázquez [Sat, 6 Jul 2013 13:18:26 +0000 (15:18 +0200)]
Some refactoring

10 years agoUnescape some symbols
David Vázquez [Sat, 6 Jul 2013 02:18:27 +0000 (04:18 +0200)]
Unescape some symbols

10 years agoFix FFI funcall
David Vázquez [Sat, 6 Jul 2013 02:02:56 +0000 (04:02 +0200)]
Fix FFI funcall

10 years agoRemove CONVERT*
David Vázquez [Fri, 5 Jul 2013 23:58:31 +0000 (01:58 +0200)]
Remove CONVERT*

10 years agoRemove comment
David Vázquez [Fri, 5 Jul 2013 23:37:46 +0000 (01:37 +0200)]
Remove comment

10 years agoRemove some transitional changes
David Vázquez [Fri, 5 Jul 2013 23:34:58 +0000 (01:34 +0200)]
Remove some transitional changes

10 years agoMETHOD-CALL JS macro
David Vázquez [Fri, 5 Jul 2013 23:32:51 +0000 (01:32 +0200)]
METHOD-CALL JS macro

10 years agoStore intermediate variables as symbols instead of strings
David Vázquez [Fri, 5 Jul 2013 16:47:27 +0000 (18:47 +0200)]
Store intermediate variables as symbols instead of strings

10 years agoRename LS-COMPILE => CONVERT and LS-COMPILE-TOPLEVEL to COMPILE-TOPLEVEL
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

10 years agoRemove CODE and transactional support in codegen for it
David Vázquez [Fri, 5 Jul 2013 16:35:27 +0000 (18:35 +0200)]
Remove CODE and transactional support in codegen for it

10 years agoRemove js!selfcall
David Vázquez [Fri, 5 Jul 2013 16:32:57 +0000 (18:32 +0200)]
Remove js!selfcall

10 years agoRemove CODE completely
David Vázquez [Fri, 5 Jul 2013 16:31:55 +0000 (18:31 +0200)]
Remove CODE completely

10 years agoMigrate compile-funcall
David Vázquez [Fri, 5 Jul 2013 15:37:28 +0000 (17:37 +0200)]
Migrate compile-funcall

10 years agoMigrate literals
David Vázquez [Fri, 5 Jul 2013 15:32:45 +0000 (17:32 +0200)]
Migrate literals

10 years agoMigrate toplevel code emitted as result of literals
David Vázquez [Fri, 5 Jul 2013 15:19:16 +0000 (17:19 +0200)]
Migrate toplevel code emitted as result of literals

10 years agoRemove CODE use in convert-toplevel
David Vázquez [Fri, 5 Jul 2013 14:49:21 +0000 (16:49 +0200)]
Remove CODE use in convert-toplevel

10 years agoRemove js!bool
David Vázquez [Fri, 5 Jul 2013 14:09:44 +0000 (16:09 +0200)]
Remove js!bool

10 years agoSecondary value in js macroexpanders to inhibit macroexpansion
David Vázquez [Fri, 5 Jul 2013 12:24:53 +0000 (14:24 +0200)]
Secondary value in js macroexpanders to inhibit macroexpansion

10 years agobool js macro replace js!bool
David Vázquez [Fri, 5 Jul 2013 12:22:52 +0000 (14:22 +0200)]
bool js macro replace js!bool

10 years agoselfcall JS macro replace js!selfcall*
David Vázquez [Fri, 5 Jul 2013 12:19:09 +0000 (14:19 +0200)]
selfcall JS macro replace js!selfcall*

10 years agoCodegen JS macros
David Vázquez [Fri, 5 Jul 2013 12:10:19 +0000 (14:10 +0200)]
Codegen JS macros

10 years agoMigrate special variable references
David Vázquez [Fri, 5 Jul 2013 03:10:39 +0000 (05:10 +0200)]
Migrate special variable references

10 years agoRemove type-check macro and its uses
David Vázquez [Fri, 5 Jul 2013 03:06:59 +0000 (05:06 +0200)]
Remove type-check macro and its uses

10 years agoVariable-arity
David Vázquez [Fri, 5 Jul 2013 02:56:10 +0000 (04:56 +0200)]
Variable-arity

10 years agoMigrate VARIABLE-ARITMETIC-CALL
David Vázquez [Fri, 5 Jul 2013 02:53:05 +0000 (04:53 +0200)]
Migrate VARIABLE-ARITMETIC-CALL

10 years agoMigrate MULTIPLE-VALUE-PROG1
David Vázquez [Fri, 5 Jul 2013 02:48:08 +0000 (04:48 +0200)]
Migrate MULTIPLE-VALUE-PROG1

10 years agoMigrate APPLY
David Vázquez [Fri, 5 Jul 2013 02:43:56 +0000 (04:43 +0200)]
Migrate APPLY

10 years agoMigrate CONS
David Vázquez [Fri, 5 Jul 2013 02:38:56 +0000 (04:38 +0200)]
Migrate CONS

10 years agoRemigrate MULTIPLE-VALUE-CALL (correctly)
David Vázquez [Fri, 5 Jul 2013 02:36:30 +0000 (04:36 +0200)]
Remigrate MULTIPLE-VALUE-CALL (correctly)

10 years agoFix temporal bug in tagbody
David Vázquez [Fri, 5 Jul 2013 02:03:30 +0000 (04:03 +0200)]
Fix temporal bug in tagbody

10 years agoMigrate MULTIPLE-VALUE-CALL
David Vázquez [Fri, 5 Jul 2013 01:50:31 +0000 (03:50 +0200)]
Migrate MULTIPLE-VALUE-CALL

10 years agoMigrate TAGBODY
David Vázquez [Fri, 5 Jul 2013 01:32:55 +0000 (03:32 +0200)]
Migrate TAGBODY

10 years agoNon-nested switch cases in codegen
David Vázquez [Fri, 5 Jul 2013 01:27:50 +0000 (03:27 +0200)]
Non-nested switch cases in codegen

10 years agoMigrate GO
David Vázquez [Fri, 5 Jul 2013 01:14:44 +0000 (03:14 +0200)]
Migrate GO

10 years agoMigrate RETURN-FROM
David Vázquez [Mon, 1 Jul 2013 02:31:53 +0000 (04:31 +0200)]
Migrate RETURN-FROM

10 years agoMigrate keyword argument parsing
David Vázquez [Mon, 1 Jul 2013 00:24:12 +0000 (02:24 +0200)]
Migrate keyword argument parsing

10 years agoOptional arguments
David Vázquez [Sun, 30 Jun 2013 15:29:00 +0000 (17:29 +0200)]
Optional arguments

10 years agoSWITCH support
David Vázquez [Sun, 30 Jun 2013 15:23:42 +0000 (17:23 +0200)]
SWITCH support

10 years agocompile reswip: compile rest arguments
David Vázquez [Sun, 30 Jun 2013 14:42:48 +0000 (16:42 +0200)]
compile reswip: compile rest arguments

10 years agoMigrate compile-lambda
David Vázquez [Sun, 30 Jun 2013 14:38:15 +0000 (16:38 +0200)]
Migrate compile-lambda

10 years agolet-binding-wrapper
David Vázquez [Sun, 30 Jun 2013 14:27:42 +0000 (16:27 +0200)]
let-binding-wrapper

10 years agoLET
David Vázquez [Sat, 29 Jun 2013 17:17:14 +0000 (19:17 +0200)]
LET

10 years agoMigrate LABELS
David Vázquez [Sat, 29 Jun 2013 16:38:30 +0000 (18:38 +0200)]
Migrate LABELS

10 years agoFLET
David Vázquez [Sat, 29 Jun 2013 16:36:11 +0000 (18:36 +0200)]
FLET

10 years agoUse destructuring-bind
David Vázquez [Sat, 29 Jun 2013 16:32:05 +0000 (18:32 +0200)]
Use destructuring-bind