mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-12 22:39:31 -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
|
||||
mainmodu = "MiniGrammar"
|
||||
mainmodu = "ResourceDemo"
|
||||
|
||||
main = do
|
||||
(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 = [
|
||||
"Afr","Bul","Cat","Dan","Dut",
|
||||
"Fin","Fre","Ger","Hin","Ita",
|
||||
"Lav","Nep","Nor","Pes","Pol",
|
||||
"Pnb","Ron","Rus","Snd","Spa",
|
||||
"Swe","Tha","Urd"
|
||||
"Jap","Lav","Nep","Nor","Pes",
|
||||
"Pol","Pnb","Ron","Rus","Snd",
|
||||
"Spa","Swe","Tha","Urd"
|
||||
]
|
||||
|
||||
file lng = "MiniGrammar" ++ lng ++ ".gf"
|
||||
file lng = "ResourceDemo" ++ lng ++ ".gf"
|
||||
|
||||
main = do
|
||||
s <- readFile (file src)
|
||||
@@ -1,4 +1,4 @@
|
||||
abstract MiniGrammar = Lexicon, Grammar [
|
||||
abstract ResourceDemo = Lexicon, Grammar [
|
||||
|
||||
-- the "mini" resource of GF book, chapter 9
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--# -path=.:alltenses
|
||||
|
||||
concrete MiniGrammarEng of MiniGrammar = LexiconEng, GrammarEng [
|
||||
concrete ResourceDemoEng of ResourceDemo = LexiconEng, GrammarEng [
|
||||
|
||||
-- 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