jscl.git
10 years agoMove codegen.lisp to compiler-codegen.lisp
David Vázquez [Thu, 20 Jun 2013 12:32:10 +0000 (14:32 +0200)]
Move codegen.lisp to compiler-codegen.lisp

10 years agoGet unary - and unary + working with increment/decrement operators
David Vázquez [Wed, 19 Jun 2013 05:02:25 +0000 (07:02 +0200)]
Get unary - and unary + working with increment/decrement operators

10 years agoDiscard returned value of JS
David Vázquez [Wed, 19 Jun 2013 04:49:02 +0000 (06:49 +0200)]
Discard returned value of JS

10 years agobit-not and unknown operator error
David Vázquez [Wed, 19 Jun 2013 04:46:43 +0000 (06:46 +0200)]
bit-not and unknown operator error

10 years agoFix not operator
David Vázquez [Wed, 19 Jun 2013 04:44:58 +0000 (06:44 +0200)]
Fix not operator

10 years agoFix statements unparsing
David Vázquez [Wed, 19 Jun 2013 04:34:39 +0000 (06:34 +0200)]
Fix statements unparsing

10 years agoConsider associativity when unparse Javascript expressions
David Vázquez [Wed, 19 Jun 2013 04:29:37 +0000 (06:29 +0200)]
Consider associativity when unparse Javascript expressions

10 years agoMore error checking
David Vázquez [Wed, 19 Jun 2013 04:13:49 +0000 (06:13 +0200)]
More error checking

10 years agotypo
David Vázquez [Wed, 19 Jun 2013 04:10:34 +0000 (06:10 +0200)]
typo

10 years agoEscape Javascript strings
David Vázquez [Wed, 19 Jun 2013 04:08:23 +0000 (06:08 +0200)]
Escape Javascript strings

10 years agoImprovements to the Javascript unparser
David Vázquez [Wed, 19 Jun 2013 04:05:38 +0000 (06:05 +0200)]
Improvements to the Javascript unparser

10 years agoNaive Javascript code generator
David Vázquez [Wed, 19 Jun 2013 02:40:05 +0000 (04:40 +0200)]
Naive Javascript code generator

10 years agoSimpler VECTOR definition
David Vázquez [Tue, 18 Jun 2013 23:31:17 +0000 (01:31 +0200)]
Simpler VECTOR definition

10 years agoMerge pull request #128 from kengruven/master
David Vázquez [Tue, 18 Jun 2013 23:26:37 +0000 (16:26 -0700)]
Merge pull request #128 from kengruven/master

Various functions and minor bug fixes

10 years agoMerge upstream.
Ken Harris [Mon, 17 Jun 2013 22:29:55 +0000 (15:29 -0700)]
Merge upstream.

10 years agoMAPLIST.
Ken Harris [Mon, 17 Jun 2013 15:51:22 +0000 (08:51 -0700)]
MAPLIST.

10 years agoGCD, LCM, SIGNUM.
Ken Harris [Sun, 16 Jun 2013 18:17:29 +0000 (11:17 -0700)]
GCD, LCM, SIGNUM.

10 years agoMerge pull request #126 from orodley/max-min
David Vázquez [Sun, 16 Jun 2013 05:02:07 +0000 (22:02 -0700)]
Merge pull request #126 from orodley/max-min

Use MACROLET for MAX and MIN

10 years agoBug fix: INTERSECTION doesn't apply :key to list1.
Ken Harris [Sun, 16 Jun 2013 04:59:00 +0000 (21:59 -0700)]
Bug fix: INTERSECTION doesn't apply :key to list1.

10 years agoUse MACROLET for MAX and MIN
Owen Rodley [Sun, 16 Jun 2013 01:26:45 +0000 (13:26 +1200)]
Use MACROLET for MAX and MIN

10 years agoSETF expansions for NTH and AREF.
Ken Harris [Sun, 16 Jun 2013 01:05:51 +0000 (18:05 -0700)]
SETF expansions for NTH and AREF.

10 years agoMerge branch 'master' of git://github.com/Ferada/jscl into keyword-arg-fixes
David Vázquez [Sat, 15 Jun 2013 16:34:41 +0000 (18:34 +0200)]
Merge branch 'master' of git://github.com/Ferada/jscl into keyword-arg-fixes

# 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 agoUse macrolet to implemnt arithmetic helper macros
David Vázquez [Sat, 15 Jun 2013 16:32:58 +0000 (18:32 +0200)]
Use macrolet to implemnt arithmetic helper macros

10 years agoBasic macrolet
David Vázquez [Sat, 15 Jun 2013 16:28:57 +0000 (18:28 +0200)]
Basic macrolet

10 years agoCheck for odd number of keyword arguments.
Olof-Joachim Frahm [Sat, 15 Jun 2013 09:25:41 +0000 (11:25 +0200)]
Check for odd number of keyword arguments.

10 years agoFix off-by-two error in keyword argument processing.
Olof-Joachim Frahm [Sat, 15 Jun 2013 08:59:25 +0000 (10:59 +0200)]
Fix off-by-two error in keyword argument processing.

10 years agoMerge pull request #121 from Ferada/small-fixes
David Vázquez [Sat, 15 Jun 2013 09:23:31 +0000 (02:23 -0700)]
Merge pull request #121 from Ferada/small-fixes

Fix OSET, TYPECASE.

10 years agoMerge branch 'strings'
David Vázquez [Sat, 15 Jun 2013 09:08:37 +0000 (11:08 +0200)]
Merge branch 'strings'

10 years agoMerge branch 'master' of git://github.com/kengruven/jscl into strings
David Vázquez [Sat, 15 Jun 2013 09:06:33 +0000 (11:06 +0200)]
Merge branch 'master' of git://github.com/kengruven/jscl into strings

10 years agoReturn the reader-form from SETF expansion.
Ken Harris [Fri, 14 Jun 2013 19:25:21 +0000 (12:25 -0700)]
Return the reader-form from SETF expansion.

10 years agoVECTOR function
Ken Harris [Fri, 14 Jun 2013 16:50:40 +0000 (09:50 -0700)]
VECTOR function

10 years agoCOPY-SEQ
Ken Harris [Fri, 14 Jun 2013 15:15:40 +0000 (08:15 -0700)]
COPY-SEQ

10 years agoRemoved tabs, stupid editor...
Ken Harris [Thu, 13 Jun 2013 17:25:24 +0000 (10:25 -0700)]
Removed tabs, stupid editor...

10 years agoCase-insensitive character inequalities.
Ken Harris [Thu, 13 Jun 2013 17:24:02 +0000 (10:24 -0700)]
Case-insensitive character inequalities.

10 years agoSTRING>= (and a bit of refactoring).
Ken Harris [Thu, 13 Jun 2013 17:16:51 +0000 (10:16 -0700)]
STRING>= (and a bit of refactoring).

10 years agoSTRING<=
Ken Harris [Thu, 13 Jun 2013 16:05:02 +0000 (09:05 -0700)]
STRING<=

10 years agoMerge pull request #122 from kengruven/master
David Vázquez [Thu, 13 Jun 2013 08:55:22 +0000 (01:55 -0700)]
Merge pull request #122 from kengruven/master

Tiny DO/DO* bug fix

10 years agoNSTRING-UPCASE, NSTRING-DOWNCASE, NSTRING-CAPITALIZE.
Ken Harris [Thu, 13 Jun 2013 08:35:37 +0000 (01:35 -0700)]
NSTRING-UPCASE, NSTRING-DOWNCASE, NSTRING-CAPITALIZE.

10 years agoSTRING-TRIM and friends.
Ken Harris [Thu, 13 Jun 2013 08:08:37 +0000 (01:08 -0700)]
STRING-TRIM and friends.

10 years agoA few more string functions.
Ken Harris [Thu, 13 Jun 2013 07:15:26 +0000 (00:15 -0700)]
A few more string functions.

10 years agoPOSITION-IF, POSITION-IF-NOT (except :FROM-END)
Ken Harris [Thu, 13 Jun 2013 06:07:23 +0000 (23:07 -0700)]
POSITION-IF, POSITION-IF-NOT (except :FROM-END)

10 years agoAllow DO / DO* to take bare symbols as vars.
Ken Harris [Thu, 13 Jun 2013 02:24:12 +0000 (19:24 -0700)]
Allow DO / DO* to take bare symbols as vars.

10 years agoFix SETF for OGET aka OSET.
Olof-Joachim Frahm [Wed, 12 Jun 2013 20:17:57 +0000 (22:17 +0200)]
Fix SETF for OGET aka OSET.

10 years agoFix TYPECASE macro for T/ELSE case.
Olof-Joachim Frahm [Mon, 10 Jun 2013 19:23:06 +0000 (21:23 +0200)]
Fix TYPECASE macro for T/ELSE case.

10 years agooops. Good fix to empty setq lisp-implementation
David Vázquez [Tue, 11 Jun 2013 16:10:26 +0000 (18:10 +0200)]
oops. Good fix to empty setq

10 years agoFix empty setq
David Vázquez [Tue, 11 Jun 2013 15:54:19 +0000 (17:54 +0200)]
Fix empty setq

10 years agoMerge branch 'master' into experimental-compiler
David Vázquez [Sat, 8 Jun 2013 13:19:46 +0000 (15:19 +0200)]
Merge branch 'master' into experimental-compiler

10 years agowip: structuring progresses
David Vázquez [Fri, 7 Jun 2013 20:05:31 +0000 (21:05 +0100)]
wip: structuring progresses

10 years agoUse (SETF OGET) in package.lisp
David Vázquez [Fri, 7 Jun 2013 15:28:57 +0000 (16:28 +0100)]
Use (SETF OGET) in package.lisp

10 years agoMerge branch 'master' into ffi
David Vázquez [Fri, 7 Jun 2013 15:24:56 +0000 (16:24 +0100)]
Merge branch 'master' into ffi

10 years agoDisable test temporarily
David Vázquez [Fri, 7 Jun 2013 15:24:50 +0000 (16:24 +0100)]
Disable test temporarily

10 years agoRemove unnecesary test
David Vázquez [Fri, 7 Jun 2013 15:06:46 +0000 (16:06 +0100)]
Remove unnecesary test

10 years agoMerge branch 'master' into ffi
David Vázquez [Fri, 7 Jun 2013 15:00:05 +0000 (16:00 +0100)]
Merge branch 'master' into ffi

10 years agoMerge pull request #117 from Ferada/small-fixes
David Vázquez [Fri, 7 Jun 2013 14:54:19 +0000 (07:54 -0700)]
Merge pull request #117 from Ferada/small-fixes

Package fixes, other small stuff.

10 years agoFix long oget chaining adding :START and :END parameters to POSITION
David Vázquez [Fri, 7 Jun 2013 11:27:49 +0000 (12:27 +0100)]
Fix long oget chaining adding :START and :END parameters to POSITION

10 years ago'If' alternative is optional
David Vázquez [Fri, 7 Jun 2013 10:58:15 +0000 (11:58 +0100)]
'If' alternative is optional

10 years agoAccept both cases for FORMAT by using CHAR-UPCASE.
Olof-Joachim Frahm [Tue, 21 May 2013 19:07:37 +0000 (21:07 +0200)]
Accept both cases for FORMAT by using CHAR-UPCASE.

10 years agoFix return value of OSET.
Olof-Joachim Frahm [Thu, 6 Jun 2013 23:42:32 +0000 (01:42 +0200)]
Fix return value of OSET.

10 years agoMove *ROOT* to toplevel.lisp because of an error.
Olof-Joachim Frahm [Thu, 6 Jun 2013 22:56:50 +0000 (00:56 +0200)]
Move *ROOT* to toplevel.lisp because of an error.

10 years agoMake FORMATS Go-To available.
Olof-Joachim Frahm [Tue, 21 May 2013 19:05:36 +0000 (21:05 +0200)]
Make FORMATS Go-To available.

I.e. skip single argument for now.

10 years agoMake FUNCTION and FLOAT available in TYPECASE.
Olof-Joachim Frahm [Tue, 21 May 2013 19:04:53 +0000 (21:04 +0200)]
Make FUNCTION and FLOAT available in TYPECASE.

10 years agoTypo.
Olof-Joachim Frahm [Tue, 21 May 2013 19:04:43 +0000 (21:04 +0200)]
Typo.

10 years agoIN-PACKAGE uses a string designator.
Olof-Joachim Frahm [Tue, 21 May 2013 19:04:18 +0000 (21:04 +0200)]
IN-PACKAGE uses a string designator.

10 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Thu, 6 Jun 2013 21:58:32 +0000 (22:58 +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.

10 years agoRemove D- prefix
David Vázquez [Thu, 6 Jun 2013 21:53:20 +0000 (22:53 +0100)]
Remove D- prefix

10 years agoMerge pull request #115 from orodley/smarter-escape-string
David Vázquez [Thu, 6 Jun 2013 21:40:36 +0000 (14:40 -0700)]
Merge pull request #115 from orodley/smarter-escape-string

Smarter escape-string

10 years agoRemove special JS FFI package
David Vázquez [Thu, 6 Jun 2013 21:31:59 +0000 (22:31 +0100)]
Remove special JS FFI package

10 years agoRemove some js-vset by (setf oget)
David Vázquez [Thu, 6 Jun 2013 19:53:44 +0000 (20:53 +0100)]
Remove some js-vset by (setf oget)

10 years ago(SETF OGET) AND (SETF OGET*)
David Vázquez [Thu, 6 Jun 2013 12:25:18 +0000 (13:25 +0100)]
(SETF OGET) AND (SETF OGET*)

10 years agoMultiple chaining keys in oset* and oset
David Vázquez [Thu, 6 Jun 2013 12:14:55 +0000 (13:14 +0100)]
Multiple chaining keys in oset* and oset

10 years agoFFI funcall
David Vázquez [Thu, 6 Jun 2013 11:55:35 +0000 (12:55 +0100)]
FFI funcall

10 years agooget support multiple key chaining
David Vázquez [Thu, 6 Jun 2013 11:49:03 +0000 (12:49 +0100)]
oget support multiple key chaining

10 years ago#j macrocharacter as synonymous of #J
David Vázquez [Thu, 6 Jun 2013 11:44:16 +0000 (12:44 +0100)]
#j macrocharacter as synonymous of #J

10 years agoUse two different string-escape functions
Owen Rodley [Wed, 5 Jun 2013 04:39:57 +0000 (16:39 +1200)]
Use two different string-escape functions
One for Lisp string literals, and the other for Javascript string
literals, the difference being the option to use single-quoted strings
in Javascript

10 years ago#J supports multiple descriptors
David Vázquez [Tue, 4 Jun 2013 19:46:18 +0000 (20:46 +0100)]
#J supports multiple descriptors

10 years ago#J "macro-character"
David Vázquez [Tue, 4 Jun 2013 19:35:12 +0000 (20:35 +0100)]
#J "macro-character"

10 years agoOSET* and OGET* type-preserving variants and *root* Javascript object
David Vázquez [Tue, 4 Jun 2013 19:23:36 +0000 (20:23 +0100)]
OSET* and OGET* type-preserving variants and *root* Javascript object

10 years agolisp-to-js and js-to-lisp wrappers
David Vázquez [Tue, 4 Jun 2013 17:59:17 +0000 (18:59 +0100)]
lisp-to-js and js-to-lisp wrappers

10 years agoSmarter string escaping. Fixes #114
Owen Rodley [Tue, 4 Jun 2013 04:42:44 +0000 (16:42 +1200)]
Smarter string escaping. Fixes #114
If the string contains no single quotes, use a single-quoted string.
If the string contains no double quotes, use a double-quoted string.
If it contains both, single-quote it and escape the single-quotes.
In all cases backslashes and newlines are escaped.

10 years agoAdd Ken Harris entry
David Vázquez [Tue, 4 Jun 2013 03:36:10 +0000 (04:36 +0100)]
Add Ken Harris entry

10 years agoSimple script to bootstrap JSCL
David Vázquez [Tue, 4 Jun 2013 02:23:29 +0000 (03:23 +0100)]
Simple script to bootstrap JSCL

10 years agoMerge pull request #109 from davazp/arrays
David Vázquez [Tue, 4 Jun 2013 02:17:35 +0000 (19:17 -0700)]
Merge pull request #109 from davazp/arrays

Merge storage vectors and beginnings of arrays implementation

10 years agoSpeed up arrays concatenating a litte bit
David Vázquez [Tue, 4 Jun 2013 02:19:49 +0000 (03:19 +0100)]
Speed up arrays concatenating a litte bit

10 years agoRemove char-to-string from tests
David Vázquez [Tue, 4 Jun 2013 02:03:03 +0000 (03:03 +0100)]
Remove char-to-string from tests

10 years agoMerge branch 'master' into arrays
David Vázquez [Tue, 4 Jun 2013 02:01:03 +0000 (03:01 +0100)]
Merge branch 'master' into arrays

Conflicts:
jscl.lisp
src/prelude.js

10 years agoMerge pull request #112 from kengruven/master
David Vázquez [Mon, 3 Jun 2013 12:57:36 +0000 (05:57 -0700)]
Merge pull request #112 from kengruven/master

Character functions

10 years agoMerge branch 'master' into arrays
David Vázquez [Mon, 3 Jun 2013 10:06:55 +0000 (11:06 +0100)]
Merge branch 'master' into arrays

10 years agoMerge pull request #108 from abeaumont/master
David Vázquez [Mon, 3 Jun 2013 09:52:03 +0000 (02:52 -0700)]
Merge pull request #108 from abeaumont/master

A proposal for code organization and style

10 years ago[doc] Some proposals for code organization and style
Alfredo Beaumont [Mon, 3 Jun 2013 09:38:56 +0000 (11:38 +0200)]
[doc] Some proposals for code organization and style

10 years agoMerge pull request #113 from orodley/quotes-in-docstrings
David Vázquez [Mon, 3 Jun 2013 09:23:14 +0000 (02:23 -0700)]
Merge pull request #113 from orodley/quotes-in-docstrings

Fix #111, error with docstrings containing single quotes

10 years agoFix #111, error with docstrings containing single quotes
Owen Rodley [Mon, 3 Jun 2013 01:09:49 +0000 (13:09 +1200)]
Fix #111, error with docstrings containing single quotes
ESCAPE-STRING assumes the resulting string is going to be double-quoted,
and LAMBA-NAME/DOCSTRING-WRAPPER was only single quoting them.

A similar issue was present for function names with single quotes. These
should be read differently, i.e. FO'O => FO (QUOTE O), but until the
reader is fixed to deal with this I think allowing them in function
names makes more sense than failing with a strange error message

10 years agoMerging from upstream.
Ken Harris [Sun, 2 Jun 2013 19:16:36 +0000 (12:16 -0700)]
Merging from upstream.

10 years agoFixing tabs/spaces. (Oops.)
Ken Harris [Sun, 2 Jun 2013 17:32:00 +0000 (10:32 -0700)]
Fixing tabs/spaces.  (Oops.)

10 years agoExtend DIGIT-CHAR-P to include all HexDigit characters.
Ken Harris [Sun, 2 Jun 2013 17:31:06 +0000 (10:31 -0700)]
Extend DIGIT-CHAR-P to include all HexDigit characters.

10 years agoCharacter case predicates.
Ken Harris [Sun, 2 Jun 2013 17:13:01 +0000 (10:13 -0700)]
Character case predicates.

10 years agoPersistent history
David Vázquez [Sun, 2 Jun 2013 08:32:02 +0000 (09:32 +0100)]
Persistent history

10 years agoFix ir-convert-call
David Vázquez [Sat, 1 Jun 2013 11:58:12 +0000 (12:58 +0100)]
Fix ir-convert-call

10 years agoRemove buggy `substitute' uses
David Vázquez [Sat, 1 Jun 2013 11:55:35 +0000 (12:55 +0100)]
Remove buggy `substitute' uses

10 years agoFix bug in reduce-component
David Vázquez [Sat, 1 Jun 2013 11:47:17 +0000 (12:47 +0100)]
Fix bug in reduce-component

10 years agoMerge branch 'master' into experimental-compiler
David Vázquez [Mon, 27 May 2013 20:49:51 +0000 (21:49 +0100)]
Merge branch 'master' into experimental-compiler