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

-> is an undocumented synonym for => ? #26

Open
jbclements opened this issue Jun 8, 2019 · 0 comments
Open

-> is an undocumented synonym for => ? #26

jbclements opened this issue Jun 8, 2019 · 0 comments

Comments

@jbclements
Copy link
Contributor

This program signals an error that doesn't make sense to me, but I think it might be because -> is secretly a synonym for =>:

#lang racket

(require nanopass/base)

(define-language R2a
  (Type (ty)
        (Void)
        (-> ty (ty* ...))
        ))

Specifically, this produces the error:

define-language: found mutually recursive nonterminals in: Type

which doesn't really make any sense to me, but I get the same error if I replace the -> with a =>, and suggests to me that this is interpreting the production as one using a prettifier.

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