forked from GitHub/gf-core
oper and lindef in CanonToJS
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
--# -path=.:prelude
|
--# -path=.:prelude
|
||||||
|
|
||||||
concrete MathEnz of Math = open Prelude in {
|
concrete MathEnz of Mathw = open Prelude in {
|
||||||
|
|
||||||
flags lexer = textlit ; unlexer = textlit ;
|
flags lexer = textlit ; unlexer = textlit ;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
--# -path=.:prelude
|
--# -path=.:prelude
|
||||||
|
|
||||||
concrete MathSwz of Math = open Prelude in {
|
concrete MathSwz of Mathw = open Prelude in {
|
||||||
|
|
||||||
flags lexer = textlit ; unlexer = textlit ;
|
flags lexer = textlit ; unlexer = textlit ;
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ concrete2js (C.CId a) (C.CId c, cnc) =
|
|||||||
++ concatMap (cncdef2js l) ds
|
++ concatMap (cncdef2js l) ds
|
||||||
where
|
where
|
||||||
l = JS.Ident c
|
l = JS.Ident c
|
||||||
ds = Map.assocs $ D.lins cnc
|
ds = concatMap Map.assocs [D.lins cnc, D.opers cnc, D.lindefs cnc]
|
||||||
|
|
||||||
cncdef2js :: JS.Ident -> (C.CId,C.Term) -> [JS.Element]
|
cncdef2js :: JS.Ident -> (C.CId,C.Term) -> [JS.Element]
|
||||||
cncdef2js l (C.CId f, t) =
|
cncdef2js l (C.CId f, t) =
|
||||||
|
|||||||
Reference in New Issue
Block a user