From be75546965a750e1bdaa7d97a2956e642e1cf76e Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 19 Oct 2012 20:14:11 +0000 Subject: Refactor compileSourceModule There was 55 lines of rather repetitive code with calls to 6 compiler passes. They have been replaced with 19 lines that call the 6 compiler passes plus 26 lines of helper functions. --- src/compiler/GF/Compile/GetGrammar.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/GF/Compile') diff --git a/src/compiler/GF/Compile/GetGrammar.hs b/src/compiler/GF/Compile/GetGrammar.hs index 2da99d448..cc4ca841c 100644 --- a/src/compiler/GF/Compile/GetGrammar.hs +++ b/src/compiler/GF/Compile/GetGrammar.hs @@ -17,7 +17,7 @@ module GF.Compile.GetGrammar (getSourceModule) where import GF.Data.Operations import GF.Infra.UseIO -import GF.Infra.Option +import GF.Infra.Option(Options,optPreprocessors,addOptions,flag) import GF.Grammar.Lexer import GF.Grammar.Parser import GF.Grammar.Grammar -- cgit v1.2.3