Created
June 5, 2013 19:19
-
-
Save jrslepak/5716442 to your computer and use it in GitHub Desktop.
Example proposed syntax for cross-language metafunctions in Redex
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
(define-language L1 | |
(a integer) | |
(e variable-not-otherwise-mentioned)) | |
(define-language L2 | |
(b string) | |
(e integer)) | |
(define-multilang-metafunction [L1 L2] | |
metafun-name : a L1:e -> b L2:e | |
<clause> ...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment