summaryrefslogtreecommitdiff
path: root/src/GF/Parsing/GFC.hs
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2007-09-24 08:56:37 +0000
committerkr.angelov <kr.angelov@gmail.com>2007-09-24 08:56:37 +0000
commitb10916944148f409a68f6eac13d9b4db49d6382f (patch)
tree8adbc8a081dca5c21f68faa17d2a4a75f773d6e8 /src/GF/Parsing/GFC.hs
parent36e091d0a1339ab363be2ad9d27608020636e569 (diff)
move the FCFG lexer to FCFG.Active where it should have been. It was a hack anyway
Diffstat (limited to 'src/GF/Parsing/GFC.hs')
-rw-r--r--src/GF/Parsing/GFC.hs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/GF/Parsing/GFC.hs b/src/GF/Parsing/GFC.hs
index 90ba718c7..948d3577b 100644
--- a/src/GF/Parsing/GFC.hs
+++ b/src/GF/Parsing/GFC.hs
@@ -55,17 +55,9 @@ type CFPInfo = PC.CFPInfo CCat Name Token
buildPInfo :: MGrammar -> FGrammar -> CGrammar -> PInfo
buildPInfo mcfg fcfg cfg = PInfo { mcfPInfo = PM.buildMCFPInfo mcfg
- , fcfPInfo = PF.buildFCFPInfo grammarLexer fcfg
+ , fcfPInfo = PF.buildFCFPInfo fcfg
, cfPInfo = PC.buildCFPInfo cfg
}
- where
- grammarLexer s =
- case reads s of
- [(n,"")] -> (fcatInt, SInt (n::Integer))
- _ -> case reads s of
- [(f,"")] -> (fcatFloat, SFloat (f::Double))
- _ -> (fcatString,SString s)
-
instance Print PInfo where
prt (PInfo m f c) = prt m ++ "\n" ++ prt c