diff options
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") |