jscl.git
10 years agoAdd basic TYPE-OF.
Olof-Joachim Frahm [Fri, 14 Mar 2014 14:48:14 +0000 (15:48 +0100)]
Add basic TYPE-OF.

10 years agoAlso SHORT- and LONG-SITE-NAME.
Olof-Joachim Frahm [Thu, 13 Mar 2014 17:24:35 +0000 (18:24 +0100)]
Also SHORT- and LONG-SITE-NAME.

10 years agoAdd SOFTWARE-TYPE and -VERSION placeholders.
Olof-Joachim Frahm [Thu, 13 Mar 2014 17:03:06 +0000 (18:03 +0100)]
Add SOFTWARE-TYPE and -VERSION placeholders.

10 years agoFix comment master
David Vázquez [Mon, 10 Mar 2014 16:15:16 +0000 (17:15 +0100)]
Fix comment

10 years agoFix gethash indentation
David Vázquez [Sun, 9 Mar 2014 11:08:03 +0000 (12:08 +0100)]
Fix gethash indentation

10 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Thu, 6 Mar 2014 12:25:43 +0000 (13:25 +0100)]
Merge branch 'master' of github.com:davazp/jscl

10 years agomachine-* functions return NIL
David Vázquez [Thu, 6 Mar 2014 12:23:16 +0000 (13:23 +0100)]
machine-* functions return NIL

10 years agoAdd lisp-implementation-version
David Vázquez [Thu, 6 Mar 2014 12:18:46 +0000 (13:18 +0100)]
Add lisp-implementation-version

10 years agoImplement eval macrocharacter (#'.)
David Vázquez [Thu, 6 Mar 2014 12:18:19 +0000 (13:18 +0100)]
Implement eval macrocharacter (#'.)

10 years agoRun tests asynchronously so it reports incrementally
David Vázquez [Thu, 6 Mar 2014 12:04:24 +0000 (13:04 +0100)]
Run tests asynchronously so it reports incrementally

10 years agoImplement maphash function
David [Thu, 27 Feb 2014 00:44:05 +0000 (01:44 +0100)]
Implement maphash function

10 years agoAdd hash-table-count function
David Vázquez [Tue, 25 Feb 2014 23:32:36 +0000 (00:32 +0100)]
Add hash-table-count function

10 years agoImplement SQRT function
David Vázquez [Mon, 24 Feb 2014 00:05:11 +0000 (01:05 +0100)]
Implement SQRT function

10 years agoAdd *version* variable
David [Sat, 22 Feb 2014 21:11:04 +0000 (22:11 +0100)]
Add *version* variable

10 years agoStop propagating errors at toplevel
David Vázquez [Sat, 22 Feb 2014 02:16:10 +0000 (03:16 +0100)]
Stop propagating errors at toplevel

10 years agoTAGBODY uses TagNLX object instead of plain object
David Vázquez [Sat, 22 Feb 2014 01:50:58 +0000 (02:50 +0100)]
TAGBODY uses TagNLX object instead of plain object

10 years agoblock/return-from uses BlockNLX instead of plain object
David Vázquez [Sat, 22 Feb 2014 01:46:05 +0000 (02:46 +0100)]
block/return-from uses BlockNLX instead of plain object

10 years agothrow/catch uses CatchNLX object instead of plain object
David Vázquez [Sat, 22 Feb 2014 01:42:11 +0000 (02:42 +0100)]
throw/catch uses CatchNLX object instead of plain object

10 years agoSETQ signals error if the first argument is not a symbol
David [Fri, 21 Feb 2014 19:52:00 +0000 (20:52 +0100)]
SETQ signals error if the first argument is not a symbol

10 years agoDEBUG: Basic compiler undefined function warning
David Vázquez [Fri, 21 Feb 2014 16:49:32 +0000 (17:49 +0100)]
DEBUG: Basic compiler undefined function warning

10 years agoMove SETF to src/setf.lisp
David Vázquez [Thu, 20 Feb 2014 00:20:37 +0000 (01:20 +0100)]
Move SETF to src/setf.lisp

10 years agoFix SYMBOL-PLIST and (SETF SYMBOL-PLIST)
David Vázquez [Thu, 20 Feb 2014 00:04:47 +0000 (01:04 +0100)]
Fix SYMBOL-PLIST and (SETF SYMBOL-PLIST)

10 years agoImplement a failing symbol-plist as primitive
David Vázquez [Wed, 19 Feb 2014 22:17:51 +0000 (23:17 +0100)]
Implement a failing symbol-plist as primitive

10 years agoInclude forgotten CSS file
David Vázquez [Wed, 19 Feb 2014 02:12:19 +0000 (03:12 +0100)]
Include forgotten CSS file

10 years agoMerge branch 'lisp-repl'
David Vázquez [Wed, 19 Feb 2014 02:09:33 +0000 (03:09 +0100)]
Merge branch 'lisp-repl'

Conflicts:
jscl.html
src/toplevel.lisp

10 years agoRewrite the REPL in Lisp using FFI
David Vázquez [Wed, 19 Feb 2014 01:48:57 +0000 (02:48 +0100)]
Rewrite the REPL in Lisp using FFI

10 years agoRewrite the REPL in Lisp using FFI
David Vázquez [Wed, 19 Feb 2014 01:48:57 +0000 (02:48 +0100)]
Rewrite the REPL in Lisp using FFI

10 years agoSet indentation to 2 spaces
David Vázquez [Wed, 19 Feb 2014 01:05:21 +0000 (02:05 +0100)]
Set indentation to 2 spaces

10 years agoBoolean Lisp<->Javascript conversion
David Vázquez [Wed, 19 Feb 2014 01:05:07 +0000 (02:05 +0100)]
Boolean Lisp<->Javascript conversion

10 years agoFix FFI Call compilation issue
David Vázquez [Wed, 19 Feb 2014 00:19:13 +0000 (01:19 +0100)]
Fix FFI Call compilation issue

For instance, in

(#j:document:addEventListener (lambda ()
  ...))

the (lambda () ...) is not compiled correctly.

10 years agoSimplify nbutlast
David Vázquez [Mon, 17 Feb 2014 17:14:10 +0000 (18:14 +0100)]
Simplify nbutlast

10 years agoMerge https://github.com/pnathan/jscl into nbutlast
David Vázquez [Mon, 17 Feb 2014 16:47:38 +0000 (17:47 +0100)]
Merge https://github.com/pnathan/jscl into nbutlast

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

10 years agoAdd NBUTLAST. Rewrite BUTLAST to be O(n).
pdn [Mon, 17 Feb 2014 07:16:05 +0000 (23:16 -0800)]
Add NBUTLAST. Rewrite BUTLAST to be O(n).

10 years agoDO to DOTIMES
pdn [Mon, 17 Feb 2014 06:05:47 +0000 (22:05 -0800)]
DO to DOTIMES

10 years agoMerge branch 'hashtables'
David Vázquez [Sun, 16 Feb 2014 19:38:45 +0000 (20:38 +0100)]
Merge branch 'hashtables'

10 years agoremhash tests
David Vázquez [Sun, 16 Feb 2014 19:38:07 +0000 (20:38 +0100)]
remhash tests

10 years agoMerge branch 'hashtables'
David Vázquez [Sun, 16 Feb 2014 19:36:11 +0000 (20:36 +0100)]
Merge branch 'hashtables'

10 years agoAdd `remhash' function
David Vázquez [Sun, 16 Feb 2014 19:36:07 +0000 (20:36 +0100)]
Add `remhash' function

10 years agoFix comments
David Vázquez [Sun, 16 Feb 2014 06:18:40 +0000 (07:18 +0100)]
Fix comments

10 years agoImplement eq and equal hash tables
David Vázquez [Sun, 16 Feb 2014 05:04:31 +0000 (06:04 +0100)]
Implement eq and equal hash tables

10 years agoAdd MAKE-LIST.
pdn [Sat, 15 Feb 2014 08:19:15 +0000 (00:19 -0800)]
Add MAKE-LIST.

10 years agoAdd the &optional n for BUTLAST
pdn [Sat, 15 Feb 2014 08:02:42 +0000 (00:02 -0800)]
Add the &optional n for BUTLAST

10 years agoWarming up: Comment codegen.lisp a little bit
David Vázquez [Fri, 14 Feb 2014 03:46:05 +0000 (04:46 +0100)]
Warming up: Comment codegen.lisp a little bit

10 years ago`make-package' signals error if package exists
David Vázquez [Sun, 1 Dec 2013 19:41:09 +0000 (19:41 +0000)]
`make-package' signals error if package exists

11 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Thu, 24 Oct 2013 12:58:19 +0000 (14:58 +0200)]
Merge branch 'master' of github.com:davazp/jscl

11 years agoBootstrap from any working directory
David Vázquez [Thu, 24 Oct 2013 12:54:53 +0000 (14:54 +0200)]
Bootstrap from any working directory

It closes ticket #78

11 years agoMerge pull request #148 from Ferada/small-fixes
David Vázquez [Fri, 18 Oct 2013 00:12:05 +0000 (17:12 -0700)]
Merge pull request #148 from Ferada/small-fixes

Fix (SETF OGET).

11 years agoFix (SETF OGET). small-fixes
Olof-Joachim Frahm [Tue, 15 Oct 2013 20:41:56 +0000 (22:41 +0200)]
Fix (SETF OGET).

11 years agoMerge pull request #147 from Ferada/defpackage
David Vázquez [Thu, 17 Oct 2013 20:13:01 +0000 (13:13 -0700)]
Merge pull request #147 from Ferada/defpackage

DEFPACKAGE including USE and some more functions.

11 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.

11 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.

11 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.

11 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.

11 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

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

11 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.

11 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.

11 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=.

11 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

11 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

11 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

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

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

11 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

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

11 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

11 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

11 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

11 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

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

11 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

11 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.

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

11 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.

11 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

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

11 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

11 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.

11 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.

11 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).

11 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.

11 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.

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

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

11 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.

11 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.

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

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

11 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.

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

11 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.

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

11 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.

11 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

11 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

11 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.

11 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

11 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

11 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

11 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