jscl.git
11 years agoMerge branch 'origin-master' into origin-format
Raimon Grau [Thu, 2 May 2013 19:00:57 +0000 (21:00 +0200)]
Merge branch 'origin-master' into origin-format

Conflicts:
jscl.lisp
src/print.lisp
src/toplevel.lisp

11 years agoCharacter printing
David Vázquez [Thu, 2 May 2013 15:03:39 +0000 (16:03 +0100)]
Character printing

11 years agoFix bug in character reading
David Vázquez [Thu, 2 May 2013 14:59:51 +0000 (15:59 +0100)]
Fix bug in character reading

11 years agoImplement characters as Javascript strings of length 1
David Vázquez [Thu, 2 May 2013 13:59:19 +0000 (14:59 +0100)]
Implement characters as Javascript strings of length 1

11 years agoMerge pull request #69 from 6502/symbol-quoting
David Vázquez [Thu, 2 May 2013 12:04:37 +0000 (05:04 -0700)]
Merge pull request #69 from 6502/symbol-quoting

Escaped symbol reading

11 years agoreindent
Raimon Grau [Thu, 2 May 2013 01:46:05 +0000 (03:46 +0200)]
reindent

11 years agocall write-to-string recursively
Raimon Grau [Thu, 2 May 2013 01:45:48 +0000 (03:45 +0200)]
call write-to-string recursively

11 years agoprinc-to-string to implement ~a and ~S format directives
Raimon Grau [Wed, 1 May 2013 23:12:22 +0000 (01:12 +0200)]
princ-to-string to implement ~a and ~S format directives

11 years agosymbol quoting support in reader
Andrea Griffini [Wed, 1 May 2013 23:10:12 +0000 (01:10 +0200)]
symbol quoting support in reader

11 years agomerged davazp trunk
Andrea Griffini [Wed, 1 May 2013 22:41:34 +0000 (00:41 +0200)]
merged davazp trunk

11 years agoMerge tests/return-from.lisp into tests/control.lisp
David Vázquez [Wed, 1 May 2013 21:40:54 +0000 (22:40 +0100)]
Merge tests/return-from.lisp into tests/control.lisp

11 years agoDeclare as special variable *use-html-output-p* in run-tests-in-host
David Vázquez [Wed, 1 May 2013 21:38:30 +0000 (22:38 +0100)]
Declare as special variable *use-html-output-p* in run-tests-in-host

11 years agoMerge pull request #66 from 6502/return-from
David Vázquez [Wed, 1 May 2013 21:31:32 +0000 (14:31 -0700)]
Merge pull request #66 from 6502/return-from

RETURN-FROM support for FLET/LABELS

11 years agoMerge pull request #68 from 6502/case-otherwise
David Vázquez [Wed, 1 May 2013 21:30:19 +0000 (14:30 -0700)]
Merge pull request #68 from 6502/case-otherwise

added OTHERWISE support to (CASE ...)

11 years agoFix test in SBCL
David Vázquez [Wed, 1 May 2013 21:32:06 +0000 (22:32 +0100)]
Fix test in SBCL

11 years agoVectors are equal if they are eql only
David Vázquez [Wed, 1 May 2013 21:31:16 +0000 (22:31 +0100)]
Vectors are equal if they are eql only

11 years agoUse defparameter instead of defvar to reset test reporting data
David Vázquez [Wed, 1 May 2013 21:27:32 +0000 (22:27 +0100)]
Use defparameter instead of defvar to reset test reporting data

It is useful to call run-tests-in-host multiple times

11 years agoDo not use html in RUN-TESTS-IN-HOST
David Vázquez [Wed, 1 May 2013 21:25:46 +0000 (22:25 +0100)]
Do not use html in RUN-TESTS-IN-HOST

11 years ago~% test added
Raimon Grau [Wed, 1 May 2013 21:23:16 +0000 (23:23 +0200)]
~% test added

11 years agoMerge pull request #58 from Strigoides/colorize-tests
David Vázquez [Wed, 1 May 2013 21:18:05 +0000 (14:18 -0700)]
Merge pull request #58 from Strigoides/colorize-tests

Colorize test output

11 years agoadded OTHERWISE support to (CASE ...)
Andrea Griffini [Wed, 1 May 2013 20:26:03 +0000 (22:26 +0200)]
added OTHERWISE support to (CASE ...)

11 years agofixed RETURN-FROM for FLET/LABELS and added a test case for correct handling of RETUR...
Andrea Griffini [Wed, 1 May 2013 19:30:09 +0000 (21:30 +0200)]
fixed RETURN-FROM for FLET/LABELS and added a test case for correct handling of RETURN-FROM in recursive functions

11 years agoFix typo if/when
David Vázquez [Wed, 1 May 2013 18:48:52 +0000 (19:48 +0100)]
Fix typo if/when

Closes #37

11 years agoPass argument count explicitly instead of use arguments.length
David Vázquez [Wed, 1 May 2013 17:46:48 +0000 (18:46 +0100)]
Pass argument count explicitly instead of use arguments.length

11 years agoMerge pull request #28 from maxwellhansen/patch-1
David Vázquez [Wed, 1 May 2013 14:34:54 +0000 (07:34 -0700)]
Merge pull request #28 from maxwellhansen/patch-1

Updated join function in utils.lisp

11 years agoFix test
David Vázquez [Wed, 1 May 2013 12:50:19 +0000 (13:50 +0100)]
Fix test

11 years agoRemove usage of the *block-counter* variable
David Vázquez [Wed, 1 May 2013 12:45:51 +0000 (13:45 +0100)]
Remove usage of the *block-counter* variable

11 years agoFixes #64 issue on nested scoping in non local exists
David Vázquez [Wed, 1 May 2013 12:44:15 +0000 (13:44 +0100)]
Fixes #64 issue on nested scoping in non local exists

11 years agounbalanced parens
Raimon Grau [Wed, 1 May 2013 10:40:45 +0000 (12:40 +0200)]
unbalanced parens

11 years agomerged trunk
Andrea Griffini [Wed, 1 May 2013 09:34:32 +0000 (11:34 +0200)]
merged trunk

11 years agoName 'JSCL' instead of 'This progrma' in the license comments
David Vázquez [Wed, 1 May 2013 04:14:11 +0000 (05:14 +0100)]
Name 'JSCL' instead of 'This progrma' in the license comments

11 years agoInclude license header to package.lispn
David Vázquez [Wed, 1 May 2013 04:12:23 +0000 (05:12 +0100)]
Include license header to package.lispn

11 years agoMove more functions to list.lisp and create package.lisp
David Vázquez [Wed, 1 May 2013 04:10:59 +0000 (05:10 +0100)]
Move more functions to list.lisp and create package.lisp

11 years agoRename AUTHORS to CREDITS and add an entry for Nikodemus Siivola
David Vázquez [Wed, 1 May 2013 03:57:55 +0000 (04:57 +0100)]
Rename AUTHORS to CREDITS and add an entry for Nikodemus Siivola

11 years agoMerge branch 'build-tweaks' of https://github.com/nikodemus/jscl into nikodemus-build...
David Vázquez [Wed, 1 May 2013 03:52:12 +0000 (04:52 +0100)]
Merge branch 'build-tweaks' of https://github.com/nikodemus/jscl into nikodemus-build-tweaks

11 years agoIgnore declarations in lambdas
David Vázquez [Wed, 1 May 2013 03:50:11 +0000 (04:50 +0100)]
Ignore declarations in lambdas

11 years agonamed-lambda is a function descriptor rather than a macro
David Vázquez [Wed, 1 May 2013 03:31:42 +0000 (04:31 +0100)]
named-lambda is a function descriptor rather than a macro

It makes easier to deal with declarations and docstrings

11 years agoVariable to enable/disable color in test output
Owen Rodley [Wed, 1 May 2013 02:39:16 +0000 (14:39 +1200)]
Variable to enable/disable color in test output

11 years agoMerge branch 'master' of https://github.com/davazp/jscl into colorize-tests
Owen Rodley [Wed, 1 May 2013 02:13:02 +0000 (14:13 +1200)]
Merge branch 'master' of https://github.com/davazp/jscl into colorize-tests

11 years agoAdd Andrea Griffini to AUTHORS
David Vázquez [Wed, 1 May 2013 01:49:43 +0000 (02:49 +0100)]
Add Andrea Griffini to AUTHORS

11 years agoMerge branch 'equal' of https://github.com/6502/jscl into 6502-equal
David Vázquez [Wed, 1 May 2013 01:28:44 +0000 (02:28 +0100)]
Merge branch 'equal' of https://github.com/6502/jscl into 6502-equal

11 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Wed, 1 May 2013 01:24:47 +0000 (02:24 +0100)]
Merge branch 'master' of github.com:davazp/jscl

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

11 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Wed, 1 May 2013 01:23:13 +0000 (02:23 +0100)]
Merge branch 'master' of github.com:davazp/jscl

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

11 years agoMerge pull request #45 from abeaumont/read-integer
David Vázquez [Wed, 1 May 2013 01:21:34 +0000 (18:21 -0700)]
Merge pull request #45 from abeaumont/read-integer

[reader] write a specific read-integer for reader

11 years agoMerge pull request #43 from tarballs-are-good/patch-2
David Vázquez [Wed, 1 May 2013 01:19:43 +0000 (18:19 -0700)]
Merge pull request #43 from tarballs-are-good/patch-2

Make sure READ-FLOAT returns a float.

11 years agoAdd to AUTHORS: Owen Rodley
David Vázquez [Wed, 1 May 2013 01:07:32 +0000 (02:07 +0100)]
Add to AUTHORS: Owen Rodley

11 years agoMerge https://github.com/Strigoides/jscl into pull-requests
David Vázquez [Wed, 1 May 2013 01:05:17 +0000 (02:05 +0100)]
Merge https://github.com/Strigoides/jscl into pull-requests

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

11 years agoquoted symbols, better handling of dotted pairs
Andrea Griffini [Tue, 30 Apr 2013 19:41:43 +0000 (21:41 +0200)]
quoted symbols, better handling of dotted pairs

11 years agosome testing for equal
Andrea Griffini [Tue, 30 Apr 2013 07:02:08 +0000 (09:02 +0200)]
some testing for equal

11 years agobetter equal implementation with support for conses, vectors, strings
Andrea Griffini [Tue, 30 Apr 2013 06:54:21 +0000 (08:54 +0200)]
better equal implementation with support for conses, vectors, strings

11 years agospecify latin-1 as external format for read-whole-file
Nikodemus Siivola [Sun, 28 Apr 2013 13:38:02 +0000 (16:38 +0300)]
specify latin-1 as external format for read-whole-file

  The current implementation assumes a single-byte-per-char format;
  make that explicit.

11 years agosilence a couple of unused-variable warnings
Nikodemus Siivola [Sun, 28 Apr 2013 13:42:11 +0000 (16:42 +0300)]
silence a couple of unused-variable warnings

11 years agoabort failed builds instead of soldiering on
Nikodemus Siivola [Sun, 28 Apr 2013 13:37:03 +0000 (16:37 +0300)]
abort failed builds instead of soldiering on

11 years agoColorize test output
Owen Rodley [Sun, 28 Apr 2013 01:28:11 +0000 (13:28 +1200)]
Colorize test output
Failures show up in red, and unexpected successes in orange

11 years agoMerge branch 'master' of https://github.com/davazp/jscl
Owen Rodley [Sun, 28 Apr 2013 01:19:14 +0000 (13:19 +1200)]
Merge branch 'master' of https://github.com/davazp/jscl

11 years agoMake sure READ-FLOAT returns a float.
Robert Smith [Sat, 27 Apr 2013 22:20:54 +0000 (15:20 -0700)]
Make sure READ-FLOAT returns a float.

Make sure READ-FLOAT returns a float during cross-compilation. (This strategy just embeds a float into the calculation as opposed to an explicit conversion.)

11 years ago[reader] write a specific read-integer for reader
Alfredo Beaumont [Sat, 27 Apr 2013 20:39:40 +0000 (22:39 +0200)]
[reader] write a specific read-integer for reader

11 years agoFix POP
Owen Rodley [Sat, 27 Apr 2013 12:33:31 +0000 (00:33 +1200)]
Fix POP

11 years agoMerge branch 'dump-changes-bug'
David Vázquez [Fri, 26 Apr 2013 22:33:49 +0000 (23:33 +0100)]
Merge branch 'dump-changes-bug'

Fix bug when dump symbols

Conflicts:
src/compiler.lisp

11 years agoFix bug in symbol dumping
David Vázquez [Fri, 26 Apr 2013 22:29:51 +0000 (23:29 +0100)]
Fix bug in symbol dumping

11 years agoOnly evaluate place in POP once
Owen Rodley [Fri, 26 Apr 2013 22:03:43 +0000 (10:03 +1200)]
Only evaluate place in POP once

11 years agoRevert "Simplify literal object dumping"
David Vázquez [Fri, 26 Apr 2013 22:02:31 +0000 (23:02 +0100)]
Revert "Simplify literal object dumping"

This reverts commit bf4fd5a5239efe4931e03f7174a0907aba6f07ef.

Conflicts:
src/compiler.lisp

11 years agoRevert "Functions dump-array, dump-cons and dump-symbol"
David Vázquez [Fri, 26 Apr 2013 22:00:36 +0000 (23:00 +0100)]
Revert "Functions dump-array, dump-cons and dump-symbol"

This reverts commit fe12fe5314125084a5960227207cf4d0426460f0.

Conflicts:
src/compiler.lisp

11 years agoExpected test failures and unexpected passes
David Vázquez [Fri, 26 Apr 2013 21:20:47 +0000 (22:20 +0100)]
Expected test failures and unexpected passes

11 years agoAdd POP macro
Owen Rodley [Fri, 26 Apr 2013 20:26:11 +0000 (08:26 +1200)]
Add POP macro

11 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Fri, 26 Apr 2013 20:16:46 +0000 (21:16 +0100)]
Merge branch 'master' of github.com:davazp/jscl

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

11 years agoRefactor SUBST to use COND
Strigoides [Fri, 26 Apr 2013 20:13:14 +0000 (08:13 +1200)]
Refactor SUBST to use COND

11 years agoAdd SUBST function
Strigoides [Fri, 26 Apr 2013 19:58:10 +0000 (07:58 +1200)]
Add SUBST function

11 years agoAdd :TEST keyword arg to ASSOC
Strigoides [Fri, 26 Apr 2013 19:43:05 +0000 (07:43 +1200)]
Add :TEST keyword arg to ASSOC

11 years agoMerge branch 'master' of https://github.com/davazp/jscl
Strigoides [Fri, 26 Apr 2013 19:29:39 +0000 (07:29 +1200)]
Merge branch 'master' of https://github.com/davazp/jscl

11 years agoAdd COPY-TREE function + test
Strigoides [Fri, 26 Apr 2013 19:28:10 +0000 (07:28 +1200)]
Add COPY-TREE function + test

11 years agoMerge pull request #31 from abeaumont/master
David Vázquez [Fri, 26 Apr 2013 19:12:36 +0000 (12:12 -0700)]
Merge pull request #31 from abeaumont/master

Improvements in reader

11 years agoAdd the rest of the C[AD]*R functions
Strigoides [Fri, 26 Apr 2013 18:52:51 +0000 (06:52 +1200)]
Add the rest of the C[AD]*R functions

11 years agoSimplify literal object dumping
David Vázquez [Fri, 26 Apr 2013 17:49:09 +0000 (18:49 +0100)]
Simplify literal object dumping

11 years agoFunctions dump-array, dump-cons and dump-symbol
David Vázquez [Fri, 26 Apr 2013 17:38:20 +0000 (18:38 +0100)]
Functions dump-array, dump-cons and dump-symbol

11 years ago`defvar` requires two arguments yet
David Vázquez [Fri, 26 Apr 2013 15:59:32 +0000 (16:59 +0100)]
`defvar` requires two arguments yet

11 years agoMerge pull request #32 from Strigoides/master
David Vázquez [Fri, 26 Apr 2013 15:55:21 +0000 (08:55 -0700)]
Merge pull request #32 from Strigoides/master

Fix COND bug

11 years agoOnly evaluate the test once in COND
Strigoides [Fri, 26 Apr 2013 15:43:33 +0000 (03:43 +1200)]
Only evaluate the test once in COND

11 years agoCreate and export read-from-string. Add a test for it
Alfredo Beaumont [Fri, 26 Apr 2013 15:22:14 +0000 (17:22 +0200)]
Create and export read-from-string. Add a test for it

11 years agoread-float: reduce code size a bit by using awhen instead of when
Alfredo Beaumont [Thu, 25 Apr 2013 22:27:50 +0000 (00:27 +0200)]
read-float: reduce code size a bit by using awhen instead of when

11 years agoAdd function RUN-TESTS-IN-HOST to run tests in the host implementation
David Vázquez [Fri, 26 Apr 2013 14:32:05 +0000 (15:32 +0100)]
Add function RUN-TESTS-IN-HOST to run tests in the host implementation

11 years agoFix COND for clauses with length 1
Strigoides [Fri, 26 Apr 2013 12:49:02 +0000 (00:49 +1200)]
Fix COND for clauses with length 1
(COND (1)) should return 1

11 years agoTest for DO*, OR, AND & COND
Strigoides [Fri, 26 Apr 2013 12:41:16 +0000 (00:41 +1200)]
Test for DO*, OR, AND & COND

11 years agoFix typo in tests.lisp and tests-report.lisp
Strigoides [Fri, 26 Apr 2013 12:18:44 +0000 (00:18 +1200)]
Fix typo in tests.lisp and tests-report.lisp

11 years agoAdd a few basic tests for iteration constructs
Strigoides [Fri, 26 Apr 2013 12:17:56 +0000 (00:17 +1200)]
Add a few basic tests for iteration constructs

11 years agoModify test running system
Strigoides [Fri, 26 Apr 2013 12:16:42 +0000 (00:16 +1200)]
Modify test running system
Rather than manually listing all tests to be run, every file with the
.lisp extension in the tests directory is automatically run

11 years agojs-eval uses globalEval
David Vázquez [Fri, 26 Apr 2013 10:32:21 +0000 (11:32 +0100)]
js-eval uses globalEval

11 years agoUpdate .gitignore
David Vázquez [Fri, 26 Apr 2013 07:45:44 +0000 (08:45 +0100)]
Update .gitignore

11 years agoUpdated join function in utils.lisp
maxwellhansen [Fri, 26 Apr 2013 05:37:09 +0000 (22:37 -0700)]
Updated join function in utils.lisp

Used !reduce instead of verbose conditional recursion.

11 years agominimal tests for format
Raimon Grau [Fri, 26 Apr 2013 00:31:29 +0000 (02:31 +0200)]
minimal tests for format

11 years agoformat supports ~%
Raimon Grau [Fri, 26 Apr 2013 00:31:13 +0000 (02:31 +0200)]
format supports ~%

11 years agoMore accurate test timing
David Vázquez [Thu, 25 Apr 2013 22:48:38 +0000 (23:48 +0100)]
More accurate test timing

11 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Thu, 25 Apr 2013 22:47:27 +0000 (23:47 +0100)]
Merge branch 'master' of github.com:davazp/jscl

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

11 years agoDefine get-internal-real-time
David Vázquez [Thu, 25 Apr 2013 22:46:57 +0000 (23:46 +0100)]
Define get-internal-real-time

11 years agoadded docs for newbie hackers
Raimon Grau [Thu, 25 Apr 2013 22:40:34 +0000 (00:40 +0200)]
added docs for newbie hackers

11 years agofist stab at format
Raimon Grau [Thu, 25 Apr 2013 22:28:44 +0000 (00:28 +0200)]
fist stab at format

11 years agoMerge pull request #25 from abeaumont/master
David Vázquez [Thu, 25 Apr 2013 22:27:53 +0000 (15:27 -0700)]
Merge pull request #25 from abeaumont/master

eval-interactive: avoid a broken eval due to an unbound *

11 years agoMerge pull request #24 from abeaumont/testing-framework
David Vázquez [Thu, 25 Apr 2013 22:21:52 +0000 (15:21 -0700)]
Merge pull request #24 from abeaumont/testing-framework

[test] rename *timestaup* to *timestamp*

11 years agoeval-interactive: avoid a broken eval due to an unbound *
Alfredo Beaumont [Thu, 25 Apr 2013 22:18:54 +0000 (00:18 +0200)]
eval-interactive: avoid a broken eval due to an unbound *

11 years ago[test] rename *timestaup* to *timestamp*
Alfredo Beaumont [Thu, 25 Apr 2013 22:15:43 +0000 (00:15 +0200)]
[test] rename *timestaup* to *timestamp*