jscl.git
11 years agoMerge branch 'codegen' into codegen-migration
David Vázquez [Sat, 22 Jun 2013 15:35:50 +0000 (17:35 +0200)]
Merge branch 'codegen' into codegen-migration

11 years agoFix FLET
David Vázquez [Sat, 22 Jun 2013 15:35:40 +0000 (17:35 +0200)]
Fix FLET

11 years agoMigrate js!bool and js!selfcall
David Vázquez [Sat, 22 Jun 2013 08:32:01 +0000 (10:32 +0200)]
Migrate js!bool and js!selfcall

11 years agoToplevel empty statement are empty strings
David Vázquez [Sat, 22 Jun 2013 08:22:39 +0000 (10:22 +0200)]
Toplevel empty statement are empty strings

11 years agoWIP: Transactional: Wrap every JS expression with parenthesis
David Vázquez [Sat, 22 Jun 2013 08:15:39 +0000 (10:15 +0200)]
WIP: Transactional: Wrap every JS expression with parenthesis

As CODE and codegen have to live together for a while, we can't deal
with the precedence/associativity easily. We use parenthesis in every
expression around ls-compile not to break the REPL.

11 years agoBug unparsing JS function
David Vázquez [Fri, 21 Jun 2013 23:28:45 +0000 (01:28 +0200)]
Bug unparsing JS function

11 years agoRemove a /debug
David Vázquez [Fri, 21 Jun 2013 23:23:18 +0000 (01:23 +0200)]
Remove a /debug

11 years agoMerge branch 'codegen-integration' into codegen
David Vázquez [Fri, 21 Jun 2013 23:20:33 +0000 (01:20 +0200)]
Merge branch 'codegen-integration' into codegen

11 years agoFix object dumping
David Vázquez [Fri, 21 Jun 2013 23:19:06 +0000 (01:19 +0200)]
Fix object dumping

11 years agoAdd debugging information
David Vázquez [Fri, 21 Jun 2013 15:16:49 +0000 (17:16 +0200)]
Add debugging information

11 years agoSome fixes
David Vázquez [Fri, 21 Jun 2013 11:44:41 +0000 (13:44 +0200)]
Some fixes

11 years agoConvert JS AST to strings in ls-compile-toplevel
David Vázquez [Fri, 21 Jun 2013 11:30:02 +0000 (13:30 +0200)]
Convert JS AST to strings in ls-compile-toplevel

11 years agoWIP: compiler.lisp uses a explicit back-end representation
David Vázquez [Fri, 21 Jun 2013 04:07:59 +0000 (06:07 +0200)]
WIP: compiler.lisp uses a explicit back-end representation

11 years agoRemove `null-or-empty-p'
David Vázquez [Fri, 21 Jun 2013 02:55:24 +0000 (04:55 +0200)]
Remove `null-or-empty-p'

11 years agoRemove `indent'
David Vázquez [Fri, 21 Jun 2013 02:48:50 +0000 (04:48 +0200)]
Remove `indent'

11 years agoTemporal change: CODE syntax almost compatible with compiler.lisp
David Vázquez [Fri, 21 Jun 2013 02:39:16 +0000 (04:39 +0200)]
Temporal change: CODE syntax almost compatible with compiler.lisp

11 years agoBug generating Javascript code for (PROGN (PROGN))
David Vázquez [Thu, 20 Jun 2013 23:30:06 +0000 (01:30 +0200)]
Bug generating Javascript code for (PROGN (PROGN))

11 years agoImprovements to nested groups handling
David Vázquez [Thu, 20 Jun 2013 14:24:42 +0000 (16:24 +0200)]
Improvements to nested groups handling

11 years agowrite-string and write-char work with streams
David Vázquez [Thu, 20 Jun 2013 13:47:59 +0000 (15:47 +0200)]
write-string and write-char work with streams

11 years agoSupport 'throw' statement
David Vázquez [Thu, 20 Jun 2013 13:31:26 +0000 (15:31 +0200)]
Support 'throw' statement

11 years agoVery basic string stream to support codegen
David Vázquez [Thu, 20 Jun 2013 13:15:42 +0000 (15:15 +0200)]
Very basic string stream to support codegen

11 years agoMove lisp-escape-string to print.lisp
David Vázquez [Thu, 20 Jun 2013 12:35:38 +0000 (14:35 +0200)]
Move lisp-escape-string to print.lisp

11 years agoRemove duplicate js-escape-string
David Vázquez [Thu, 20 Jun 2013 12:34:08 +0000 (14:34 +0200)]
Remove duplicate js-escape-string

11 years agoMerge branch 'master' into codegen
David Vázquez [Thu, 20 Jun 2013 12:32:12 +0000 (14:32 +0200)]
Merge branch 'master' into codegen

11 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

11 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Thu, 20 Jun 2013 12:26:53 +0000 (14:26 +0200)]
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 agoReduce tests
David Vázquez [Thu, 20 Jun 2013 12:25:56 +0000 (14:25 +0200)]
Reduce tests

11 years agoShorter reduce implementation
David Vázquez [Thu, 20 Jun 2013 12:22:18 +0000 (14:22 +0200)]
Shorter reduce implementation

11 years agoList version of reduce
David Vázquez [Thu, 20 Jun 2013 12:06:57 +0000 (14:06 +0200)]
List version of reduce

11 years agoMerge pull request #132 from kengruven/master
David Vázquez [Wed, 19 Jun 2013 20:27:52 +0000 (13:27 -0700)]
Merge pull request #132 from kengruven/master

Fixed min/max

11 years agoFixed max/min functions.
Ken Harris [Wed, 19 Jun 2013 18:44:44 +0000 (11:44 -0700)]
Fixed max/min functions.

11 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

11 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

11 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

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

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

11 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

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

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

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

11 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

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

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

11 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

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

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

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

11 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

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

11 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

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

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

11 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

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

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

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

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

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

11 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

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

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

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

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

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

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

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

11 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

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

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

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

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

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

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

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

11 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

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

11 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

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

11 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

11 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

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

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

11 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

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

11 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

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

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

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

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

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

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

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

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

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

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

11 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

11 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

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

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

11 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