diff options
author | Darren Bane <darren.bane@gmail.com> | 2020-08-30 15:32:05 +0100 |
---|---|---|
committer | Darren Bane <darren.bane@gmail.com> | 2020-08-30 15:32:05 +0100 |
commit | 4e68c5a3613c8fad09a3bb155222f9d0bd1209e1 (patch) | |
tree | b6b6f57f10b2a0e1c95a4212db1d2ca98de4774b /cbasic.lisp | |
parent | d737f1ab887c1d3e7b97cfaa443e6037d5f53c5b (diff) | |
download | lsp-4e68c5a3613c8fad09a3bb155222f9d0bd1209e1.tar.gz |
Making changes
Diffstat (limited to 'cbasic.lisp')
-rw-r--r-- | cbasic.lisp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/cbasic.lisp b/cbasic.lisp index 1974c24..858d491 100644 --- a/cbasic.lisp +++ b/cbasic.lisp @@ -1,10 +1,19 @@ ;;; I'm trying to write an interpreter for a BBC BASIC subset -;;; using a Frankenstein design following -;;; https://caml.inria.fr/pub/docs/oreilly-book/html/book-ora058.html and +;;; initially following the design of +;;; https://caml.inria.fr/pub/docs/oreilly-book/html/book-ora058.html +;;; and later I can Frankenstein it with ;;; https://github.com/Henry/BuddKaminInterpreters -;;; Not sure yet if it's a good idea or not, -;;; but I'm trying to keep the number of top-level functions the same as in OCaml. +(require "cparse") +(require "") +(defpackage #:cbasic + (:use #:common-lisp) + (:export + #:main)) +(in-package #:cbasic) + +;;; Not sure if it's a good idea, +;;; but try to keep the number of top-level functions the same as in OCaml. (defun one-command (st) (format (standard-output) "> ") @@ -26,3 +35,4 @@ (for ((st (create (class <state>)))) (catch 'error (one-command st))))) (format (standard-output) "See you later...~%")) +(provide "cbasic") |