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

generate-term + missnamed cross gives an internal error message #181

Open
florence opened this issue May 8, 2019 · 0 comments
Open

generate-term + missnamed cross gives an internal error message #181

florence opened this issue May 8, 2019 · 0 comments

Comments

@florence
Copy link
Contributor

florence commented May 8, 2019

the program

#lang racket
(require redex/reduction-semantics)

(define-language L
  (b ::= a))

((generate-term L (cross b_1))
 1)

Gives the error

redex/private/rg.rkt:182:2: hash-ref: no value found for key
  key: 'b_1-b_1

Instead of complaining that b_1 isn't a non-terminal in L.

Also if I add a #:i-th:

#lang racket
(require redex/reduction-semantics)

(define-language L
  (b ::= a))

((generate-term L (cross b_1) #:i-th)
 1)

The error message points to the middle of the contract library:

collects/racket/contract/private/arrow-val-first.rkt:390:18: hash-ref: no value found for key
  key: 'b_1-b_1
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

1 participant