forked from GitHub/gf-core
lambda in GFCC
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{-# OPTIONS -fno-warn-incomplete-patterns #-}
|
||||
|
||||
module GF.Canon.GFCC.PrintGFCC where
|
||||
|
||||
-- pretty-printer generated by the BNF converter
|
||||
@@ -155,6 +154,8 @@ instance Print Term where
|
||||
V n -> prPrec i 0 (concatD [doc (showString "$") , prt 0 n])
|
||||
C n -> prPrec i 0 (concatD [prt 0 n])
|
||||
F cid -> prPrec i 0 (concatD [prt 0 cid])
|
||||
L cid -> prPrec i 0 (concatD [doc (showString "$") , prt 0 cid])
|
||||
A cid term -> prPrec i 0 (concatD [doc (showString "(") , prt 0 cid , doc (showString "->") , prt 0 term , doc (showString ")")])
|
||||
FV terms -> prPrec i 0 (concatD [doc (showString "[|") , prt 0 terms , doc (showString "|]")])
|
||||
W str term -> prPrec i 0 (concatD [doc (showString "(") , prt 0 str , doc (showString "+") , prt 0 term , doc (showString ")")])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user