mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-08-19 10:46:22 -06:00
allow patterns inside pre to contain concatenation
This commit is contained in:
@@ -230,6 +230,7 @@ str2lin v0@(VAlts def alts)
|
||||
to_str _ = fail
|
||||
|
||||
from_patt (PAlt p1 p2) = liftM2 (++) (from_patt p1) (from_patt p2)
|
||||
from_patt (PSeq _ _ p1 _ _ p2) = liftM2 (liftM2 (++)) (from_patt p1) (from_patt p2)
|
||||
from_patt (PString s) = return [s]
|
||||
from_patt _ = fail
|
||||
|
||||
|
||||
Reference in New Issue
Block a user