#lang scheme/base
(require
"forth-begin.ss"
(for-syntax
"../tools.ss"
"../forth/lexer.ss"
scheme/base))
(provide forth-compile
forth-load/compile
forth-path)
(define-syntax (forth-compile stx)
(syntax-case stx ()
((_ str)
#`(forth-begin
#,@(string->forth-syntax #'str)))))
(define-syntax (forth-load/compile stx)
(syntax-case stx ()
((_ path)
#`(forth-begin #,(datum->syntax #'path 'load) path))))
(define-syntax (forth-path stx)
(syntax-case stx ()
((_ path)
#`(forth-begin #,(datum->syntax #'path 'path) path))))