exercises and notes from "Gentle introduction"

This commit is contained in:
efim
2022-07-24 11:52:07 +00:00
commit 067aebaf81
21 changed files with 1597 additions and 0 deletions

13
FSMs.lisp Normal file
View File

@@ -0,0 +1,13 @@
;; exmple of FSM
;; vending machine
;; - gum :: 15 cents
;; - mints :: 20 cents
;; any combination of
;; DIME - 10c
;; NICKEL - 5c
;; if enough money is in, press of either button would get you the product and change
;; pressing coin return at any time will return amount equal to being put in so far
;;; and the exercise is to use macro to compile FSM with functions for states, from defstate & defarc structures
;; that seems cool