Created
February 28, 2013 04:22
-
-
Save jrslepak/5054161 to your computer and use it in GitHub Desktop.
Unexpected behavior from define-union-language -- the "two sublanguages" named in the error message are the same language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require redex) | |
(define-language LBase | |
(e (+ e e) | |
number)) | |
(define-extended-language L1 LBase | |
(e .... | |
(- e e))) | |
(define-extended-language L2 LBase | |
(e .... | |
(* e e))) | |
(define-union-language LMerge (one. L1) (two. L2)) | |
#| | |
define-union-language: two sublanguages both contribute the non-terminal: one.e in: | |
(one. L1) | |
(one. L1) | |
|# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment