mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-07 18:22:50 -06:00
Copy command-line options to module flags when compiling to .gfo.
This commit is contained in:
@@ -21,6 +21,7 @@ module GF.Grammar.Grammar (SourceGrammar,
|
||||
SourceAbs,
|
||||
SourceRes,
|
||||
SourceCnc,
|
||||
mapSourceModule,
|
||||
Info(..),
|
||||
PValues,
|
||||
Perh,
|
||||
@@ -75,6 +76,9 @@ type SourceAbs = Module Ident Info
|
||||
type SourceRes = Module Ident Info
|
||||
type SourceCnc = Module Ident Info
|
||||
|
||||
mapSourceModule :: (Module Ident Info -> Module Ident Info) -> SourceModule -> SourceModule
|
||||
mapSourceModule f (i,mi) = (i, mapModules' f mi)
|
||||
|
||||
-- this is created in CheckGrammar, and so are Val and PVal
|
||||
type PValues = [Term]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user