first Nobel grammar

This commit is contained in:
Aarne Ranta
2025-05-04 10:12:23 +02:00
parent 0671eee0ba
commit cc604093d0
5 changed files with 73 additions and 102 deletions

17
lab2/grammars/Nobel.gf Normal file
View File

@@ -0,0 +1,17 @@
abstract Nobel = Labels ** {
flags startcat = Description ;
cat
Description ;
Name ;
Date ;
fun
LivingDescription : Name -> Name -> Country -> Date -> Date -> Award -> Description ;
PastDescription : Name -> Name -> Country -> Date -> Date -> Date -> Award -> Description ;
StringName : String -> Name ;
YearDate : Int -> Date ;
he_Name, she_Name, they_Name : Name ;
}