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.
11 lines
516 B
Racket
11 lines
516 B
Racket
8 years ago
|
#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.
|
||
7 years ago
|
(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)
|