1
0
forked from GitHub/gf-core

Grammar without lexicon, new top module

This commit is contained in:
aarne
2006-05-31 14:56:42 +00:00
parent afa2261a1b
commit 4d71dcd880
4 changed files with 65 additions and 1 deletions

View 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
** {} ;

View File

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

View 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 ;
} ;

View 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 ;
} ;