racket / racket/redex

`define-extended-language`+ overriding a `variable-not-otherwise-mentioned` with a `variable-not-in` fails.

Open
#208 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
112
Forks
42
PR merge metrics
No merged PRs in 30d

Description

The program

#lang racket
(require redex/reduction-semantics)

(define-language L
  (v ::= GO WAIT x)
  (x ::= variable-not-otherwise-mentioned))

(define-extended-language L+ L
  (x ::= (variable-not-in WAIT)))

(redex-match? L+ x (term GO))

produces #f, despite x in L+ being specified to only exclude WAIT.
It produces #t if the variable-not-in is replace with variable.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied program and tracing define-extended-language, variable-not-in, and redex-match? in the Redex implementation. Compare the extended grammar's handling of x with the original variable-not-otherwise-mentioned rule; done means the example's redex-match? result is #t while WAIT remains excluded.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.