blakemcbride / lispf4 Goto Github PK
View Code? Open in Web Editor NEWInterLisp interpreter
License: Other
InterLisp interpreter
License: Other
The downstream bug describing the exact situation can be found here.
This bug is 100% reproducible across all systems I tried so far, and can be reproduced if you install Guix or GuixSD on some form of a system including just a VM (see Guix documentation for this short process).
I can not invest the time into this bug so I hope some people involving the author of this software will get to solving this bug.
The comments in the readme say it is 64-bit, but my Windows 7 OS does not think so.
I am trying to save the example function MYMAX
to the mymax.lsp
file.
Here is what the UsersGuide.txt
says about the how-to:
Ex.: Define some functions and save them as your file MYFILE on the
logical unit 25.
(OPEN 'MYFILE 'O 25) (this line not needed when your system
uses symbolic file names, or if you let
MAKEFILE prompt you for logical unit
number of MYFILE)
(CURFILE MYFILE)
(DE ....]
(DE ....]
etc.
(MAKEFILE 'MYFILE "filename.l" T)
I am trying the following code:
(OPEN 'MYFILE 'O 25)
(CURFILE 'MYFILE)
(SETQ MYFILECOMS "MYFILE-PACKAGE")
(SETQ MYFILEFNS '(MYMAX MYFILEFNS))
(DE MYMAX (L)
(PROG (X)
(COND ((NULL L) (RETURN NIL)))
(SETQ X (CAR L))
LOOP (SETQ L (CDR L))
(COND ((NULL L) (RETURN X))
((LESSP X (CAR L)) (SETQ X (CAR L))))
(GO LOOP)))
(MAKEFILE 'MYFILE "mymax.lsp" t)
Here is what mymax.lsp
contains:
(FILEHEADER MYFILE)
(PRINT '"MYFILE-PACKAGE")
(PRINT '(VERSION 0))
(DEFINEQ
(*
(SUBR . TIMES))
('(MYFILEFNS MYMAX)
NIL)
)
(PRINT 'MYFILEFNS)
(RPAQQ MYFILEFNS (MYFILEFNS MYMAX))
(RPAQQ MYFILECOMS "MYFILE-PACKAGE")
(RPAQ MYFILEGENNR 0)
STOP
When I rename MYMAX to * ...
(OPEN 'MYFILE 'O 25)
(CURFILE 'MYFILE)
(SETQ MYFILECOMS "MYFILE-PACKAGE")
(SETQ MYFILEFNS '(MYMAX MYFILEFNS))
(DE * (L)
(PROG (X)
(COND ((NULL L) (RETURN NIL)))
(SETQ X (CAR L))
LOOP (SETQ L (CDR L))
(COND ((NULL L) (RETURN X))
((LESSP X (CAR L)) (SETQ X (CAR L))))
(GO LOOP)))
(MAKEFILE 'MYFILE "mymax.lsp" t)
... the result is:
(FILEHEADER MYFILE)
(PRINT '"MYFILE-PACKAGE")
(PRINT '(VERSION 0))
(DEFINEQ
(*
(LAMBDA (L)
(PROG (X)
(COND ((NULL L) (RETURN NIL)))
(SETQ X (CAR L))
LOOP (SETQ L (CDR L))
[COND ((NULL L) (RETURN X))
((LESSP X (CAR L)) (SETQ X (CAR L]
(GO LOOP))))
('(MYFILEFNS MYMAX)
NIL)
)
(PRINT 'MYFILEFNS)
(RPAQQ MYFILEFNS (MYFILEFNS MYMAX))
(RPAQQ MYFILECOMS "MYFILE-PACKAGE")
(RPAQ MYFILEGENNR 0)
STOP
Is this a bug or am I doing something wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.