Files
comp-syntax-gu-mlt/lab2/grammars/Nobel.gf
2025-05-04 12:14:37 +02:00

20 lines
355 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 ;
StringName : String -> Name ;
YearDate : Int -> Date ;
he_Name, she_Name, they_Name : Name ;
}