experiment with gfc input

This commit is contained in:
aarne
2005-05-27 20:05:17 +00:00
parent 665c542af2
commit 92007a3aaf
8 changed files with 1104 additions and 872 deletions

View File

@@ -2,11 +2,21 @@
-- Canonical GF. AR 27/4/2003
entrypoints Canon ;
entrypoints Canon, Line ;
-- old approach: read in a whole grammar
MGr. Canon ::= "grammar" [Ident] "of" Ident ";" [Module] ;
Gr. Canon ::= [Module] ;
-- new approach: read line by line
LMulti. Line ::= "grammar" [Ident] "of" Ident ";" ;
LHeader. Line ::= ModType "=" Extend Open "{" ;
LFlag. Line ::= Flag ";" ;
LDef. Line ::= Def ";" ;
LEnd. Line ::= "}" ;
Mod. Module ::= ModType "=" Extend Open "{" [Flag] [Def] "}" ;
MTAbs. ModType ::= "abstract" Ident ;