-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eu2C: Reorganise the syntax modules so that syntax-0 corresponds to l…
…evel-0
- Loading branch information
Henry
authored and
Henry
committed
Oct 6, 2010
1 parent
9120391
commit 5ad7206
Showing
50 changed files
with
103 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ | |
convert) | ||
syntax (tail | ||
apply | ||
syntax-0 | ||
syntax-i | ||
setf) | ||
export (converter | ||
convert)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ | |
string-ref-u) | ||
collection-i)) | ||
syntax (tail | ||
syntax-0) | ||
syntax-i) | ||
export (accumulate | ||
accumulate1 | ||
any? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ | |
collection-aux | ||
table) | ||
syntax (tail | ||
syntax-0) | ||
syntax-i) | ||
export (<table> | ||
make-table | ||
setter-table-ref | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ | |
timer)) | ||
syntax ((only (when | ||
unless) | ||
syntax-0)) | ||
syntax-i)) | ||
export (wait | ||
get-timer | ||
timeout-expired | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
tail | ||
option-lists) | ||
syntax (eulisp-kernel | ||
syntax-0 | ||
syntax-i | ||
tail) | ||
export (<object> | ||
make | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
(only (cond | ||
and | ||
when) | ||
syntax-0)) | ||
syntax-i)) | ||
export (find-option | ||
get-option | ||
check-options)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
eulisp-kernel)) | ||
syntax (tail | ||
(only (cond) | ||
syntax-0)) | ||
syntax-i)) | ||
export (atom? | ||
cons? | ||
copy-alist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,7 @@ | |
syntax (tail | ||
(only (when | ||
unless) | ||
syntax-0) | ||
syntax-i) | ||
condition-ii) | ||
export (<stream> | ||
<file-stream> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ | |
(only (sprintf-3) | ||
c-stdio)) | ||
syntax (tail | ||
syntax-0) | ||
syntax-i) | ||
export (<symbol> | ||
symbol? | ||
gensym | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,3 @@ | ||
;;; Copyright 1994-2010 Fraunhofer ISST | ||
;;; Copyright 2010 Henry G. Weller | ||
;;;----------------------------------------------------------------------------- | ||
;; This file is part of | ||
;;; --- EuLisp System 'Eu2C' | ||
;;;----------------------------------------------------------------------------- | ||
;; | ||
;; Eu2C is free software: you can redistribute it and/or modify it under the | ||
;; terms of the GNU General Public License version 2 as published by the Free | ||
;; Software Foundation. | ||
;; | ||
;; Eu2C is distributed in the hope that it will be useful, but WITHOUT ANY | ||
;; WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
;; FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
;; details. | ||
;; | ||
;; You should have received a copy of the GNU General Public License along with | ||
;; this program. If not, see <http://www.gnu.org/licenses/>. | ||
;; | ||
;;;----------------------------------------------------------------------------- | ||
;;; Title: Level-0 syntax | ||
;;; Authors: Ingo Mohr | ||
;;; Maintainer: Henry G. Weller | ||
;;;----------------------------------------------------------------------------- | ||
|
||
(defmodule syntax-0 | ||
(import (tail | ||
basic-list | ||
basic-syntax) | ||
syntax (tail) | ||
expose (basic-list | ||
basic-compare | ||
basic-syntax)) | ||
|
||
;;;----------------------------------------------------------------------------- | ||
;;; cond | ||
;;;----------------------------------------------------------------------------- | ||
(defmacro cond clauses | ||
(if (null? clauses) () | ||
(if (null? (cdr (car clauses))) `(or ,(car (car clauses)) | ||
(cond ,@(cdr clauses))) | ||
(if (eq (car (car clauses)) 't) `(progn ,@(cdr (car clauses))) | ||
`(if ,(car (car clauses)) | ||
(progn ,@(cdr (car clauses))) | ||
(cond ,@(cdr clauses))))))) | ||
(defmacro and forms | ||
(if (null? forms) 't | ||
(if (null? (cdr forms)) (car forms) | ||
`(if ,(car forms) | ||
(and ,@(cdr forms)) | ||
())))) | ||
|
||
(defmacro when (cond . forms) | ||
(if (null? forms) () | ||
`(if ,cond (progn ,@forms) () ))) | ||
|
||
(defmacro unless (cond . forms) | ||
(if (null? forms) () | ||
`(if ,cond () (progn ,@forms) ))) | ||
|
||
(defmacro block (identifier . forms) | ||
(if (null? forms) () | ||
`(let/cc ,identifier ,@forms))) | ||
|
||
(defmacro return-from (identifier . form) | ||
`(,identifier ,(if (null? form) () (car form)))) | ||
|
||
;;;----------------------------------------------------------------------------- | ||
) ;; End of module syntax-0 | ||
;;;----------------------------------------------------------------------------- | ||
(expose (syntax-i | ||
object-0))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
basic-list-0) | ||
table-aux) | ||
syntax (tail | ||
syntax-0 | ||
syntax-i | ||
setf) | ||
export (<table> | ||
table? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ | |
tail)) | ||
syntax ((only (when | ||
unless) | ||
syntax-0)) | ||
syntax-i)) | ||
export (TL-empty | ||
TL-single | ||
TL-on-top | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ | |
letcc)) | ||
syntax ((only (when | ||
unless) | ||
syntax-0)) | ||
syntax-i)) | ||
export (<thread> | ||
thread? | ||
make-thread | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.