forked from GitHub/gf-core
Grammar without lexicon, new top module
This commit is contained in:
21
lib/resource-1.0/abstract/Grammar.gf
Normal file
21
lib/resource-1.0/abstract/Grammar.gf
Normal file
@@ -0,0 +1,21 @@
|
||||
--1 The Main Module of the Resource Grammar
|
||||
|
||||
-- This grammar a collection of the different grammar modules,
|
||||
-- To test the resource, import [Lang Lang.html], which also contains
|
||||
-- a lexicon.
|
||||
|
||||
abstract Grammar =
|
||||
Noun,
|
||||
Verb,
|
||||
Adjective,
|
||||
Adverb,
|
||||
Numeral,
|
||||
Sentence,
|
||||
Question,
|
||||
Relative,
|
||||
Conjunction,
|
||||
Phrase,
|
||||
Text,
|
||||
Structural,
|
||||
Idiom
|
||||
** {} ;
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
-- This grammar is just a collection of the different modules,
|
||||
-- and the one that can be imported when one wants to test the
|
||||
-- grammar. A smaller top module is [Test Test.html].
|
||||
-- grammar. A module without a lexicon is [Grammar Grammar.html],
|
||||
-- which may be more suitable to open in applications.
|
||||
|
||||
abstract Lang =
|
||||
Noun,
|
||||
|
||||
21
lib/resource-1.0/english/GrammarEng.gf
Normal file
21
lib/resource-1.0/english/GrammarEng.gf
Normal file
@@ -0,0 +1,21 @@
|
||||
--# -path=.:../abstract:../common:prelude
|
||||
|
||||
concrete GrammarEng of Grammar =
|
||||
NounEng,
|
||||
VerbEng,
|
||||
AdjectiveEng,
|
||||
AdverbEng,
|
||||
NumeralEng,
|
||||
SentenceEng,
|
||||
QuestionEng,
|
||||
RelativeEng,
|
||||
ConjunctionEng,
|
||||
PhraseEng,
|
||||
TextX,
|
||||
StructuralEng,
|
||||
IdiomEng
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
21
lib/resource-1.0/swedish/GrammarSwe.gf
Normal file
21
lib/resource-1.0/swedish/GrammarSwe.gf
Normal file
@@ -0,0 +1,21 @@
|
||||
--# -path=.:../scandinavian:../abstract:../common:prelude
|
||||
|
||||
concrete GrammarSwe of Grammar =
|
||||
NounSwe,
|
||||
VerbSwe,
|
||||
AdjectiveSwe,
|
||||
AdverbSwe,
|
||||
NumeralSwe,
|
||||
SentenceSwe,
|
||||
QuestionSwe,
|
||||
RelativeSwe,
|
||||
ConjunctionSwe,
|
||||
PhraseSwe,
|
||||
TextX,
|
||||
IdiomSwe,
|
||||
StructuralSwe
|
||||
** {
|
||||
|
||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||
|
||||
} ;
|
||||
Reference in New Issue
Block a user