mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 17:42:51 -06:00
qualified cat in gfe
This commit is contained in:
@@ -107,8 +107,9 @@ mkCncLine parser morpho (Left line) = mkLinRule (words line) where
|
|||||||
mkLinRule s =
|
mkLinRule s =
|
||||||
let
|
let
|
||||||
(pre,str) = span (/= "in") s
|
(pre,str) = span (/= "in") s
|
||||||
([cat],rest) = splitAt 1 $ tail str
|
([mcat],rest) = splitAt 1 $ tail str
|
||||||
(lin,subst) = span (/= '"') $ tail $ unwords rest
|
(lin,subst) = span (/= '"') $ tail $ unwords rest
|
||||||
|
cat = reverse $ takeWhile (/= '.') $ reverse mcat
|
||||||
substs = doSubst (init (tail subst))
|
substs = doSubst (init (tail subst))
|
||||||
def
|
def
|
||||||
| last pre /= "=" = line -- ordinary lin rule
|
| last pre /= "=" = line -- ordinary lin rule
|
||||||
|
|||||||
Reference in New Issue
Block a user