alphaTab.alphaTex.ArgumentListParseTypesMode
Description
Defines how the arguments of the meta data tag is parsed.
Enum Members
| Name | Numeric Value | Description |
|---|---|---|
Required | 0 | Indicates that the parameter of the given types is required. If the token matches, it is added to the value list. If the token does not match, an error diagnostic is added and parsing is stopped. |
Optional | 1 | Indicates that the parameter of the given types is optional. If the token matches, it is added to the value list. If the token does not match, the value list completes and parsing continues. |
RequiredAsFloat | 2 | Same as |
OptionalAsFloat | 3 | Same as |
RequiredAsValueList | 4 | Indicates that multiple arguments of the same types should be parsed as a list Think: rest-parameter that allows parameters to follow if the type doesn't match anymore. If the token is a open parenthesis, it starts reading the specified types as value list. If an unexpected item is encountered an error diagnostic is added. If the token matches the expected type, a single value is read. If the token is any other type, an error diagnostic is added and parsing is stopped. |
ValueListWithoutParenthesis | 5 | Indicates that multiple parameters of the same types should be parsed. (this is mainly for backwards compatibility with older alphaTex files) If the token matches, it is added to the value list. Parsing stays on the current type. If the token does not match, the value list completes and parsing continues. |