mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
changed js and hs file names in gfcc output to expected ones
This commit is contained in:
@@ -18,7 +18,7 @@ tree2exp t = case t of
|
||||
TId c -> tree (AC (i2i c)) []
|
||||
TInt i -> tree (AI i) []
|
||||
TStr s -> tree (AS s) []
|
||||
-- TFloat d ->
|
||||
TFloat d -> tree (AF d) []
|
||||
where
|
||||
i2i (Ident s) = CId s
|
||||
|
||||
@@ -32,4 +32,7 @@ exp2tree (DTr xs at ts) = tabs (map i4i xs) (tapp at (map exp2tree ts))
|
||||
tapp (AC f) [] = TId (i4i f)
|
||||
tapp (AC f) vs = TApp (i4i f) vs
|
||||
tapp (AI i) [] = TInt i
|
||||
tapp (AS i) [] = TStr i
|
||||
tapp (AF i) [] = TFloat i
|
||||
tapp (AM i) [] = TId (Ident "?") ----
|
||||
i4i (CId s) = Ident s
|
||||
|
||||
Reference in New Issue
Block a user