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

Extending a language can't infer meta variables. #36

Open
swatson555 opened this issue Jun 3, 2023 · 0 comments
Open

Extending a language can't infer meta variables. #36

swatson555 opened this issue Jun 3, 2023 · 0 comments

Comments

@swatson555
Copy link

The following piece of code produces a define-language: unrecognized meta-variable in language r0-let error although works fine in chez.

#lang nanopass

(define program-info? list?)

(define-language r0
  (terminals
   (program-info (info))
   (integer (n)))
  (Program (p)
    (program info e))
  (Expr (e)
    n
    (- e)
    (+ e0 e1)
    (read)))

(define variable? symbol?)

(define-language r0-let
  (extends r0)
  (terminals
   (+ (variable (x))))
  (Expr (e body)
    (+ x)
    (+ (let ((x e)) body))))
@swatson555 swatson555 changed the title Extending a language can't deduce meta variable. Extending a language can't infer meta variables. Jun 3, 2023
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