翻訳と辞書
Words near each other
・ PC-1 (computer)
・ PC-20
・ PC-200
・ PC-461-class submarine chaser
・ PC-6601
・ PC-7 Team
・ PC-8000 Series
・ PC-8801
・ PC-Aero Elektra One
・ PC-based IBM-compatible mainframes
・ PC-BSD
・ PC-File
・ PC-Flight Pretty Flight
・ PC-FX
・ PC-Lint
PC-LISP
・ PC-MOS/386
・ PC-on-a-stick
・ PC-Talk
・ PC-UX
・ PC-Write
・ PC/104
・ PC/104 Consortium
・ PC/Computing
・ PC/SC
・ PC/TCP Packet Driver
・ PC1
・ PC1 cipher
・ PC100
・ PC12


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

PC-LISP : ウィキペディア英語版
PC-LISP
PC-LISP is an implementation of the Franz Lisp dialect by Peter Ashwood-Smith.
Version 2.11 was released on May 15, 1986. A current version may be downloaded from the external link below.
Currently, PC-LISP has been ported to 32 & 64 bit Linux, Mac, and Windows.
Note that the Franz LISP dialect was the immediate, portable successor to the ITS version of Maclisp and is perhaps the closest thing to the LISP in the Steven Levy book ''Hackers'' as is practical to operate. PC-LISP runs well in DOS emulators and on modern Windows versions. Because PC-LISP implements Franz LISP, it is a dynamically scoped predecessor to modern Common Lisp. This is therefore an historically important implementation.
==Example==
The session is running the following code which demonstrates dynamic scoping in Franz LISP. Note that PC-LISP does not implement the let special form that Emacs Lisp provides for local variables. Instead, all variables are what an ALGOL-based language would call "global". The first dialect of Lisp to incorporate ALGOL scoping rules (called lexical scoping) was Scheme although the Common Lisp language also added this feature.

;; Demonstration of dynamic scoping
;; This is a "global" variable
(setq myglobal "this is my global variable")
;; Another global variable
(setq yourglobal "this is my global variable")
;; a function which prints the symbols
(defun dosomething (mine yours)
(princ "
* Mine is - ")
(princ mine)
(princ "\n")
(princ "
* Yours is - ")
(princ yours)
(princ "\n"))
;; override the symbols
(defun nolocals ()
(setq mine "I have set mine to a new value")
(setq yours "I have set mine to a new value")
(dosomething mine yours))
(defun main ()
;; define two symbols
(setq mine myglobal)
(setq yours yourglobal)

;; print them
(princ "calling dosomething\n")
(dosomething mine yours)
(princ "calling nolocals\n")
(nolocals)
(princ "calling dosomething again\n")
(dosomething mine yours))


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「PC-LISP」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.