mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
Renamed transfer compiler and interpreter.
This commit is contained in:
@@ -7,8 +7,8 @@ GHCFLAGS=-i$(SRCDIR)
|
|||||||
.PHONY: all bnfc bnfctest doc docclean clean bnfcclean distclean
|
.PHONY: all bnfc bnfctest doc docclean clean bnfcclean distclean
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(GHC) $(GHCFLAGS) --make -o run_core run_core.hs
|
$(GHC) $(GHCFLAGS) --make -o trci trci.hs
|
||||||
$(GHC) $(GHCFLAGS) --make -o compile_to_core compile_to_core.hs
|
$(GHC) $(GHCFLAGS) --make -o transferc transferc.hs
|
||||||
|
|
||||||
bnfc: bnfcclean
|
bnfc: bnfcclean
|
||||||
cd $(SRCDIR) && bnfc -gadt -d -p Transfer Transfer/Core/Core.cf
|
cd $(SRCDIR) && bnfc -gadt -d -p Transfer Transfer/Core/Core.cf
|
||||||
@@ -38,8 +38,8 @@ docclean:
|
|||||||
clean:
|
clean:
|
||||||
-rm -f *.o *.hi
|
-rm -f *.o *.hi
|
||||||
find $(SRCDIR)/Transfer -name '*.o' -o -name '*.hi' | xargs rm -f
|
find $(SRCDIR)/Transfer -name '*.o' -o -name '*.hi' | xargs rm -f
|
||||||
-rm -f run_core
|
-rm -f trci
|
||||||
-rm -f compile_to_core
|
-rm -f transferc
|
||||||
-rm -f test_core test_syntax test_layout
|
-rm -f test_core test_syntax test_layout
|
||||||
|
|
||||||
bnfcclean:
|
bnfcclean:
|
||||||
@@ -47,4 +47,3 @@ bnfcclean:
|
|||||||
-rm -f $(SRCDIR)/Transfer/Syntax/{Doc,Lex,Par,Layout,Skel,Print,Test,Abs}.*
|
-rm -f $(SRCDIR)/Transfer/Syntax/{Doc,Lex,Par,Layout,Skel,Print,Test,Abs}.*
|
||||||
|
|
||||||
distclean: clean bnfcclean
|
distclean: clean bnfcclean
|
||||||
|
|
||||||
|
|||||||
@@ -22,4 +22,4 @@ main = do
|
|||||||
cf <- compileFile path f
|
cf <- compileFile path f
|
||||||
putStrLn $ "Wrote " ++ cf
|
putStrLn $ "Wrote " ++ cf
|
||||||
return ()
|
return ()
|
||||||
_ -> die "Usage: compile_to_core [-i<path> [-i<path> ... ]] <file>"
|
_ -> die "Usage: transferc [-i<path> [-i<path> ... ]] <file>"
|
||||||
@@ -28,7 +28,7 @@ main = do args <- getArgs
|
|||||||
let (flags,files) = partition ("-" `isPrefixOf`) args
|
let (flags,files) = partition ("-" `isPrefixOf`) args
|
||||||
env <- case files of
|
env <- case files of
|
||||||
[f] -> loadFile f
|
[f] -> loadFile f
|
||||||
_ -> fail "Usage: run_core [-i] <file>"
|
_ -> fail "Usage: trci [-i] <file>"
|
||||||
when ("-v" `elem` flags) $ do
|
when ("-v" `elem` flags) $ do
|
||||||
putStrLn "Top-level environment:"
|
putStrLn "Top-level environment:"
|
||||||
putStrLn (prEnv env)
|
putStrLn (prEnv env)
|
||||||
Reference in New Issue
Block a user