Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
STklos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Erick
STklos
Commits
c26dbc70
Commit
c26dbc70
authored
Apr 17, 2011
by
Erick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
03b10241
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
321 additions
and
317 deletions
+321
-317
ChangeLog
ChangeLog
+298
-295
NEWS
NEWS
+1
-0
lib/repl.stk
lib/repl.stk
+19
-19
src/boot.c
src/boot.c
+2
-2
src/boot.img
src/boot.img
+1
-1
No files found.
ChangeLog
View file @
c26dbc70
This diff is collapsed.
Click to expand it.
NEWS
View file @
c26dbc70
...
...
@@ -10,6 +10,7 @@ This is mainly a maintenance version.
*
Documentation
update
*
Modifications
to
support
ScmPkg
on
MacOs
MacPorts
*
Fix
incompatibilities
in
FFI
introduced
in
1.00
*
Better
x86_64
support
*
Bug
fixes
*
version
1.00
(
2010
08
11
)
...
...
lib/repl.stk
View file @
c26dbc70
;;;;
;;;; repl.stk -- STklos REPL
;;;;
;;;; Copyright 2000-201
0
Erick Gallesio - Universite de Nice <eg@unice.fr>
;;;;
;;;;
;;;;
;;;; Copyright 2000-201
1
Erick Gallesio - Universite de Nice <eg@unice.fr>
;;;;
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;;
;;;; This program 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, write to the Free Software
;;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
;;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
;;;; USA.
;;;;
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 4-Jun-2000 15:07 (eg)
;;;; Last file update:
25-Oct-2010 20:39
(eg)
;;;; Last file update:
5-Jan-2011 09:05
(eg)
;;;;
;; This file defines the REPL module. This module does not export anything
;; This file defines the REPL module. This module does not export anything
;; and is completely self-contained. This is the module which is last loaded
;; in the default boot file.
;;
;; in the default boot file.
;;
(define-module REPL
...
...
@@ -52,7 +52,7 @@
((help h ?) (display
(do-color 'blue 'bold
(format "Available Commands:
- ,backtrace ,bt Show the stack when last error occurred
- ,backtrace ,bt Show the stack when last error occurred
- ,quit ,q Exit STklos
- ,help ,? ,h This help\n")
'clear)
...
...
@@ -83,7 +83,7 @@
out)))
(define (repl-handler c port)
(define (repl-handler c port)
(if (condition? c)
(cond
((condition-has-type? c &error-message) ;; &error-message
...
...
@@ -95,7 +95,7 @@
((condition-has-type? c &message) ;; &message (e.g. ^C)
(format port (condition-ref c 'message)))
((condition-has-type? c &uncaught-exception)
(repl-handler (uncaught-exception-reason c) port))
(repl-handler (uncaught-exception-reason c) port))
(else ;; Unknown
(format port "**** Unknown condition raised.\n")
(format port "Condition type: ~A\n" (struct-type-name (struct-type c)))
...
...
@@ -198,7 +198,7 @@ doc>
(let ((e (%read in)))
(display (do-color 'clear))
(cond
(cond
((eof-object? e)
(set! repl-level (- repl-level 1))
(set! eof #t)
...
...
@@ -210,7 +210,7 @@ doc>
(do-repl-command (cdr e)))
(else
(call-with-values
(call-with-values
(lambda () (eval e))
(lambda v
(when interactive?
...
...
@@ -240,13 +240,13 @@ doc>
(%initialize-signals)
(when interactive?
(let ((line1 (format "STklos version ~A\n" (version)))
(line2 "Copyright (C) 1999-201
0
Erick Gallesio - Universite de Nice <eg@unice.fr>\n")
(line2 "Copyright (C) 1999-201
1
Erick Gallesio - Universite de Nice <eg@unice.fr>\n")
(line3 (format "[~a/~a/~a]\n" (machine-type) (%thread-system)
(key-get *%system-state-plist* :readline 'no-readline))))
(display (do-color 'bold 'black "* " 'bold 'blue line1))
(display (do-color 'bold 'black " * " 'bold 'blue line2))
(display (do-color 'bold 'black "* * " 'bold 'blue line3 'normal))))
((main-repl-hook))
(repl)
(%pre-exit 0))
...
...
src/boot.c
View file @
c26dbc70
This diff is collapsed.
Click to expand it.
src/boot.img
View file @
c26dbc70
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment