You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brag/brag-lib/brag/rules/stx-types.rkt

11 lines
516 B
Racket

#lang racket/base
(provide (all-defined-out))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These are just here to provide bindings for Check Syntax.
;; Otherwise, we should never hit these, as the toplevel rules-codegen
;; should eliminate all uses of these if it does the right thing.
(define-syntax-rule (define-errors ID ...)
(begin (define (ID stx) (raise-syntax-error 'ID "Used out of context of rules" stx)) ...))
(define-errors rules rule id lit token choice repeat maybe seq)