mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-11 05:49:31 -06:00
Introduced output of stripped format gfcm.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
module IOGrammar where
|
||||
|
||||
import Option
|
||||
import Abstract
|
||||
import qualified GFC
|
||||
import PGrammar
|
||||
@@ -8,6 +7,8 @@ import TypeCheck
|
||||
import Compile
|
||||
import ShellState
|
||||
|
||||
import Modules
|
||||
import Option
|
||||
import Operations
|
||||
import UseIO
|
||||
import Arch
|
||||
@@ -35,6 +36,9 @@ string2annotTree gr m = annotate gr . string2absTerm (prt m) ---- prt
|
||||
---string2paramList st = map (renameTrm (lookupConcrete st) . patt2term) . pPattList
|
||||
|
||||
shellStateFromFiles :: Options -> ShellState -> FilePath -> IOE ShellState
|
||||
shellStateFromFiles opts st file | fileSuffix file == "gfcm" = do
|
||||
(_,_,cgr) <- compileOne opts (compileEnvShSt st []) file
|
||||
ioeErr $ updateShellState opts st (cgr,(emptyMGrammar,[]))
|
||||
shellStateFromFiles opts st file = do
|
||||
let osb = if oElem showOld opts
|
||||
then addOptions (options [beVerbose]) opts -- for old, no emit
|
||||
|
||||
Reference in New Issue
Block a user