Skip to content

Commit

Permalink
Fix for self-bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
tizoc committed Oct 13, 2019
1 parent 992d8ff commit 9e721fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ language: generic
sudo: required
env:
global:
- PREBUILT_SHEN_VERSION=3.0.2
- PREBUILT_SHEN_VERSION=3.0.1
matrix:
include:
- os: linux
Expand Down
4 changes: 3 additions & 1 deletion src/compiler.shen
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(package shen-cl [progn quote null car cdr t nil
numberp stringp consp funcall
list eq eql equal let*
lisp.defun lisp.lambda lisp.
lisp.defun lisp.lambda lisp.block lisp.
%%return return %%goto-label go
%%let-label block tagbody]

Expand Down Expand Up @@ -62,6 +62,8 @@
[lisp.lambda Vars Body] Scope -> [(cl lambda) Vars (compile-expression Body (append Vars Scope))]
[lisp.defun Name Vars Body] _ -> [(cl defun) Name Vars (compile-expression Body Vars)]
[lisp.block Name Body] Scope -> [(cl block) Name (compile-expression Body Scope)]
\\ NOTE: temporary fix for self-bootstrapping
[shen-cl.lisp.block Name Body] Scope -> [(cl block) Name (compile-expression Body Scope)]
[lisp. Code] _ -> (if (string? Code)
((protect READ-FROM-STRING) Code)
(error "lisp. excepts a string, not ~A" Code))
Expand Down

0 comments on commit 9e721fb

Please sign in to comment.