Completion entry
Completion entry
entry value (e.g. string literal)
entry score (defines the order of entries within a set, the higher the better)
entry meta (e.g. visual style)
Set of related completion entries
Set of related completion entries
set tag
set of unique completion entries
Tag defining identification and attributes of a set of completion entries
Tag defining identification and attributes of a set of completion entries
tag label
tag score (the higher the better, 0 by default)
tag description (optional) - can be used for additional information e.g. for a tooltip
tag meta (optional) - can be used e.g. to define visual style
Result of parser completion, listing the possible entry alternatives at a certain input position
Result of parser completion, listing the possible entry alternatives at a certain input position
position in the input where completion entries apply
completion entries, grouped per tag
Collection of data types allowing definition of structured parser completions. A
Completions
instance can contain multipleCompletionSet
s instances. ACompletionSet
provides a set ofCompletion
entries and is tagged with aCompletionTag
.Sets allow structuring the completion entries into groups, each group tagged with a
label
(plus optionaldescription
andmeta
, the latter allowing e.g. encoding visual attributes for the set). Sets also feature a score, which defines the order between sets within theCompletions
instance.Each
Completion
entry within a set has avalue
, ascore
and ameta
: the score allows ordering the entries within a set, and the meta can e.g. be used to assign a representation style for a particular completion entry.Note that specifying tags and sets is optional: if no tag is specified upon creation,
Completions
instances create a unique default set with an empty tag.