forked from GitHub/gf-core
GrammarToCanonical: bug fix: add missing case for Empty
This commit is contained in:
@@ -215,6 +215,7 @@ convert' gr vs = ppT
|
||||
alt (t,p) = (pre p,ppT0 t)
|
||||
|
||||
pre (K s) = [s]
|
||||
pre Empty = [""] -- Empty == K ""
|
||||
pre (Strs ts) = concatMap pre ts
|
||||
pre (EPatt p) = pat p
|
||||
pre t = error $ "pre "++show t
|
||||
|
||||
Reference in New Issue
Block a user