From b10916944148f409a68f6eac13d9b4db49d6382f Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 24 Sep 2007 08:56:37 +0000 Subject: move the FCFG lexer to FCFG.Active where it should have been. It was a hack anyway --- src/GF/Parsing/GFC.hs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/GF/Parsing/GFC.hs') 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 -- cgit v1.2.3