forked from GitHub/gf-core
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
|
||||
|
||||
prRExp :: RExp -> ShowS
|
||||
prRExp (App x []) = showChar '(' . prCId x . showChar ')'
|
||||
prRExp (App x xs) = showChar '(' . prCId x . showChar ' '
|
||||
. prRExpList xs . showChar ')'
|
||||
prRExp (AId x) = prCId x
|
||||
|
||||
Reference in New Issue
Block a user