Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions sbvr-parser.ometajs
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,15 @@ export ometa SBVRParser <: SBVRLibs {
}
return term;
},
AttrTermFormSynonym =
{_.last(this.lines)}:factType
{_.last(factType)}:attrs
{_.findLast(attrs, {0: 'TermForm'})}:termForm
( ?(!termForm)
{throw new Error('Term form synonyms require a term form first')}
)?
AddIdentifier(termForm[1][0], termForm[1][1]),

AttrReferenceType =
seq('informative')
| seq('strict'),
Expand Down Expand Up @@ -877,6 +886,7 @@ defaultAllowedAttrLists = {
FactType: [
'Synonymous Form:',
'Term Form:',
'Term Form Synonym:',
'Reference Type:'
].concat(defaultAllowedAttrLists),
Rule: [
Expand Down