mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
GFCCRaw printing: no space in App with no arguments.
This commit is contained in:
@@ -11,6 +11,7 @@ prGrammar :: Grammar -> ShowS
|
|||||||
prGrammar (Grm xs) = prRExpList xs
|
prGrammar (Grm xs) = prRExpList xs
|
||||||
|
|
||||||
prRExp :: RExp -> ShowS
|
prRExp :: RExp -> ShowS
|
||||||
|
prRExp (App x []) = showChar '(' . prCId x . showChar ')'
|
||||||
prRExp (App x xs) = showChar '(' . prCId x . showChar ' '
|
prRExp (App x xs) = showChar '(' . prCId x . showChar ' '
|
||||||
. prRExpList xs . showChar ')'
|
. prRExpList xs . showChar ')'
|
||||||
prRExp (AId x) = prCId x
|
prRExp (AId x) = prCId x
|
||||||
|
|||||||
Reference in New Issue
Block a user