Files
comp-syntax-gu-mlt/lab2/grammars/Nobel.gf
2025-05-17 10:05:20 +02:00

22 lines
511 B
Plaintext

abstract Nobel = Labels ** {
flags startcat = Sentence ;
cat
Sentence ;
Name ;
Date ;
fun
BornSentence : Name -> Country -> Date -> Sentence ;
AwardSentence : Name -> Award -> Date -> Sentence ;
DiedSentence : Name -> Date -> Sentence ;
FemaleName : String -> Name ; -- use if your language needs gender agreement
MaleName : String -> Name ; -- use if your language needs gender agreement
StringName : String -> Name ;
YearDate : Int -> Date ;
he_Name, she_Name, they_Name : Name ;
}