;;; Catbird Game Engine ;;; Copyright © 2022 David Thompson ;;; ;;; Licensed under the Apache License, Version 2.0 (the "License"); ;;; you may not use this file except in compliance with the License. ;;; You may obtain a copy of the License at ;;; ;;; http://www.apache.org/licenses/LICENSE-2.0 ;;; ;;; Unless required by applicable law or agreed to in writing, software ;;; distributed under the License is distributed on an "AS IS" BASIS, ;;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ;;; See the License for the specific language governing permissions and ;;; limitations under the License. ;;; Commentary: ;; ;; In-engine asynchronous REPL implementation. ;; ;;; Code: (define-module (catbird repl) #:use-module (catbird asset) #:use-module (catbird line-editor) #:use-module (catbird kernel) #:use-module (catbird mixins) #:use-module (catbird mode) #:use-module (catbird node) #:use-module (catbird node-2d) #:use-module (catbird pushdown) #:use-module (catbird region) #:use-module (catbird ring-buffer) #:use-module (catbird scene) #:use-module (catbird ui) #:use-module (chickadee) #:use-module (chickadee graphics color) #:use-module (chickadee graphics path) #:use-module (chickadee graphics text) #:use-module (chickadee graphics texture) #:use-module (chickadee math vector) #:use-module (ice-9 exceptions) #:use-module (ice-9 match) #:use-module (oop goops) #:use-module (srfi srfi-1) #:use-module (srfi srfi-9) #:use-module (system base compile) #:use-module (system base language) #:use-module (system vm frame) #:use-module (system vm loader) #:use-module (system vm program) #:export ( define-meta-command enter-debugger open-repl resize-repl repl-print)) ;; TODO: $number values like regular Guile REPL ;; TODO: Debugger ;; TODO: Switching languages ;; TODO: Describe, apropos commands ;; TODO: printer ;;; ;;; Graphical Printers ;;; (define-method (repl-print obj) (make