mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 00:22:51 -06:00
renamed lib/src/mini/MiniGrammar to lib/src/demo/ResourceDemo ; added Jap
This commit is contained in:
@@ -18,7 +18,7 @@ import System
|
|||||||
|
|
||||||
|
|
||||||
-- change this to apply to another project; alternatively, just use full file names
|
-- change this to apply to another project; alternatively, just use full file names
|
||||||
mainmodu = "MiniGrammar"
|
mainmodu = "ResourceDemo"
|
||||||
|
|
||||||
main = do
|
main = do
|
||||||
(opts,langs) <- getArgs >>= return . partition ((=='-') . head)
|
(opts,langs) <- getArgs >>= return . partition ((=='-') . head)
|
||||||
12
lib/src/demo/Makefile
Normal file
12
lib/src/demo/Makefile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
compile = runghc Compile
|
||||||
|
|
||||||
|
all: src compdemo linkdemo
|
||||||
|
|
||||||
|
src:
|
||||||
|
runghc MkMini.hs
|
||||||
|
|
||||||
|
compdemo:
|
||||||
|
$(compile) Afr Bul Cat Dan Dut Eng Fin Fre Ger Hin Ita Jap Lav Nep Nor Pes Pnb Pol Ron Rus Snd Spa Swe Tha Urd
|
||||||
|
|
||||||
|
linkdemo:
|
||||||
|
$(compile) -link Afr Bul Cat Dan Dut Eng Fin Fre Ger Hin Ita Jap Lav Nep Nor Pes Pnb Pol Ron Rus Snd Spa Swe Tha Urd
|
||||||
@@ -2,12 +2,12 @@ src = "Eng"
|
|||||||
langs = [
|
langs = [
|
||||||
"Afr","Bul","Cat","Dan","Dut",
|
"Afr","Bul","Cat","Dan","Dut",
|
||||||
"Fin","Fre","Ger","Hin","Ita",
|
"Fin","Fre","Ger","Hin","Ita",
|
||||||
"Lav","Nep","Nor","Pes","Pol",
|
"Jap","Lav","Nep","Nor","Pes",
|
||||||
"Pnb","Ron","Rus","Snd","Spa",
|
"Pol","Pnb","Ron","Rus","Snd",
|
||||||
"Swe","Tha","Urd"
|
"Spa","Swe","Tha","Urd"
|
||||||
]
|
]
|
||||||
|
|
||||||
file lng = "MiniGrammar" ++ lng ++ ".gf"
|
file lng = "ResourceDemo" ++ lng ++ ".gf"
|
||||||
|
|
||||||
main = do
|
main = do
|
||||||
s <- readFile (file src)
|
s <- readFile (file src)
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
abstract MiniGrammar = Lexicon, Grammar [
|
abstract ResourceDemo = Lexicon, Grammar [
|
||||||
|
|
||||||
-- the "mini" resource of GF book, chapter 9
|
-- the "mini" resource of GF book, chapter 9
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
--# -path=.:alltenses
|
--# -path=.:alltenses
|
||||||
|
|
||||||
concrete MiniGrammarEng of MiniGrammar = LexiconEng, GrammarEng [
|
concrete ResourceDemoEng of ResourceDemo = LexiconEng, GrammarEng [
|
||||||
|
|
||||||
-- the "mini" resource of GF book, chapter 9
|
-- the "mini" resource of GF book, chapter 9
|
||||||
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
compile = runghc Compile
|
|
||||||
|
|
||||||
all: src compdemo linkdemo
|
|
||||||
|
|
||||||
src:
|
|
||||||
runghc MkMini.hs
|
|
||||||
|
|
||||||
compdemo:
|
|
||||||
$(compile) Afr Bul Cat Dan Dut Eng Fin Fre Ger Hin Ita Lav Nep Nor Pes Pnb Pol Ron Rus Snd Spa Swe Tha Urd
|
|
||||||
|
|
||||||
linkdemo:
|
|
||||||
$(compile) -link Afr Bul Cat Dan Dut Eng Fin Fre Ger Hin Ita Lav Nep Nor Pes Pnb Pol Ron Rus Snd Spa Swe Tha Urd
|
|
||||||
Reference in New Issue
Block a user