summaryrefslogtreecommitdiff
path: root/src/GF/Source/GF.cf
diff options
context:
space:
mode:
Diffstat (limited to 'src/GF/Source/GF.cf')
-rw-r--r--src/GF/Source/GF.cf9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/GF/Source/GF.cf b/src/GF/Source/GF.cf
index 682debc9d..80da5b9d1 100644
--- a/src/GF/Source/GF.cf
+++ b/src/GF/Source/GF.cf
@@ -270,7 +270,7 @@ separator DDecl "" ;
-- for backward compatibility
-OldGr. OldGrammar ::= Include [TopDef] ;
+OldGr. OldGrammar ::= Include [TopDef] ;
NoIncl. Include ::= ;
Incl. Include ::= "include" [FileName] ;
@@ -292,3 +292,10 @@ ELin. Exp2 ::= "Lin" Ident ;
DefPrintOld. TopDef ::= "printname" [PrintDef] ;
DefLintype. TopDef ::= "lintype" [Def] ;
DefPattern. TopDef ::= "pattern" [Def] ;
+
+-- deprecated packages are attempted to be interpreted
+DefPackage. TopDef ::= "package" Ident "=" "{" [TopDef] "}" ";" ;
+
+-- these two are just ignored after parsing
+DefVars. TopDef ::= "var" [Def] ;
+DefTokenizer. TopDef ::= "tokenizer" Ident ";" ;