forked from GitHub/gf-core
Support gfc-nofud
This commit is contained in:
@@ -43,9 +43,9 @@ parseStringC opts0 sg cat s
|
|||||||
| oElem newParser opts0 = do
|
| oElem newParser opts0 = do
|
||||||
let pm = maybe "" id $ getOptVal opts0 useParser -- -parser=pm
|
let pm = maybe "" id $ getOptVal opts0 useParser -- -parser=pm
|
||||||
gr = grammar sg
|
gr = grammar sg
|
||||||
ps <- checkErr $ N.newParser pm gr (cfCat2Cat cat) s
|
ct = cfCat2Cat cat
|
||||||
checkWarn $ unlines ps
|
ts <- checkErr $ N.newParser pm gr (cfCat2Cat cat) s
|
||||||
return []
|
mapM (checkErr . (annotate gr)) ts
|
||||||
|
|
||||||
| otherwise = do
|
| otherwise = do
|
||||||
let opts = unionOptions opts0 $ stateOptions sg
|
let opts = unionOptions opts0 $ stateOptions sg
|
||||||
|
|||||||
@@ -2,11 +2,16 @@ GHMAKE=ghc
|
|||||||
GHCFLAGS=-package lang -package util
|
GHCFLAGS=-package lang -package util
|
||||||
GHCFUDFLAG=-package Fudgets
|
GHCFUDFLAG=-package Fudgets
|
||||||
GHCINCLUDE=-iapi -icompile -igrammar -iinfra -ishell -isource -icanonical -iuseGrammar -icf -ifor-ghc -iparsing
|
GHCINCLUDE=-iapi -icompile -igrammar -iinfra -ishell -isource -icanonical -iuseGrammar -icf -ifor-ghc -iparsing
|
||||||
|
GHCINCLUDENOFUD=-iapi -icompile -igrammar -iinfra -ishell -isource -icanonical -iuseGrammar -icf -ifor-ghc-nofud -iparsing
|
||||||
|
|
||||||
all:
|
all:
|
||||||
make today ; make ghc
|
make today ; make ghc
|
||||||
ghc:
|
ghc:
|
||||||
$(GHMAKE) $(GHCFLAGS) $(GHCINCLUDE) $(GHCFUDFLAG) --make GF.hs -o gf2+ ; strip gf2+ ; mv gf2+ ../bin/
|
$(GHMAKE) $(GHCFLAGS) $(GHCINCLUDE) $(GHCFUDFLAG) --make GF.hs -o gf2+ ; strip gf2+ ; mv gf2+ ../bin/
|
||||||
|
nofud:
|
||||||
|
$(GHMAKE) $(GHCFLAGS) $(GHCINCLUDENOFUD) --make GF.hs -o gf2n ; strip gf2n
|
||||||
|
nofud-links:
|
||||||
|
cd for-ghc-nofud ; rm *.hs ; ln -s ../for-ghc/Arch.hs ; ln -s ../for-hugs/ArchEdit.hs ; cd ..
|
||||||
batch:
|
batch:
|
||||||
$(GHMAKE) $(GHCFLAGS) $(GHCINCLUDE) --make GF2.hs -o gf2 ; strip gf2
|
$(GHMAKE) $(GHCFLAGS) $(GHCINCLUDE) --make GF2.hs -o gf2 ; strip gf2
|
||||||
api:
|
api:
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
module Today where today = "Mon Oct 6 10:50:56 CEST 2003"
|
module Today where today = "Mon Oct 6 11:34:26 CEST 2003"
|
||||||
|
|||||||
Reference in New Issue
Block a user