From 4e42d73ee508715e83c8f1a160b7bc696b78571b Mon Sep 17 00:00:00 2001 From: aarne Date: Sat, 7 Jan 2006 12:26:11 +0000 Subject: regex patterns for tokens --- src/GF/Grammar/Compute.hs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/GF/Grammar/Compute.hs') diff --git a/src/GF/Grammar/Compute.hs b/src/GF/Grammar/Compute.hs index 26409ce27..a25f6f98f 100644 --- a/src/GF/Grammar/Compute.hs +++ b/src/GF/Grammar/Compute.hs @@ -304,6 +304,13 @@ computeTermOpt rec gr = comp where PP _ _ ps -> concatMap contP ps PT _ p -> contP p PR rs -> concatMap (contP . snd) rs + + PAs x p -> (x,Vr x) : contP p + + PSeq p q -> concatMap contP [p,q] + PAlt p q -> concatMap contP [p,q] + PRep p -> contP p + _ -> [] prawitz g i f cs e = do -- cgit v1.2.3