mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-19 17:59:32 -06:00
28 lines
607 B
Plaintext
28 lines
607 B
Plaintext
-- A file with Pointers...
|
|
-- With pointers I mean the phrases that point out a specific semantics of a segment.
|
|
-- Example "I want to listen to the artist Sting" where "the artist" makes clear
|
|
-- that "Sting" is an artist and not a song for instance.
|
|
|
|
resource SpecResEng = {
|
|
|
|
param ListInfo = Numeric | Ordered ;
|
|
param ItemChoice = Artist | Song | Post;
|
|
|
|
oper listForm : ListInfo => Str
|
|
= table {
|
|
Numeric => ["number"];
|
|
Ordered => ["the"]
|
|
|
|
};
|
|
|
|
|
|
oper itemForm : ItemChoice => Str
|
|
= table {
|
|
Artist => ["the artist"];
|
|
Song => ["the song"];
|
|
Post => ""
|
|
};
|
|
|
|
}
|
|
|