1
0
forked from GitHub/gf-core

renamed lib/src/mini/MiniGrammar to lib/src/demo/ResourceDemo ; added Jap

This commit is contained in:
aarne
2012-05-10 11:54:30 +00:00
parent 36b1e82edb
commit e4c310ec2e
29 changed files with 19 additions and 19 deletions

View File

@@ -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
View 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

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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