Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redex-check ellipsis error gives internal source location #50

Closed
florence opened this issue Apr 29, 2016 · 1 comment
Closed

redex-check ellipsis error gives internal source location #50

florence opened this issue Apr 29, 2016 · 1 comment

Comments

@florence
Copy link
Contributor

#lang racket
(require redex/reduction-semantics)

(define-language simple-plus
  (M (e e))
  (e natural))

(define-judgment-form simple-plus
  #:mode (okay1 I I)
  [
   --------
   (okay1 M (e ...))])

(redex-check simple-plus
 #:satisfying (okay1 e)
 (term e))

Gives the error:

redex/redex-lib/redex/private/judgment-form.rkt:1698:9: redex-check: generation failed at unsupported pattern;
 (#:satisfying keyword does not support ellipses, contexts, side-conditions, or unquote)
  pattern: (repeat (name e (nt e)) #f #f)

Instead of reporting a source location in the given file

@rfindler
Copy link
Member

rfindler commented May 1, 2016

This is a runtime error (during the generation process), so what you are seeing there is the stack. If this were a syntax error, we could make the source location better but, as implied by the discussion in #49, that is probably a bad idea.

@rfindler rfindler closed this as completed May 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants