PATTERN = "^[([config,color-stop,([color-hint,color-stop]|color-stop)]|color-stop),~([color-hint,color-stop]|color-stop)]."
Full Gradiente DSL pattern.
BEGIN = "^"
Pattern starts here.
SEQUENCE = "["
Ordered list of expressions.
GROUP = "("
Grouped expression or alternatives.
SEQUENCE = "["
Ordered list of expressions.
CONFIG = "config"
Gradient configuration input.
SEPARATOR = ","
Separates sequence items.
COLOR STOP = "color-stop"
Gradient color stop input.
SEPARATOR = ","
Separates sequence items.
GROUP = "("
Grouped expression or alternatives.
SEQUENCE = "["
Ordered list of expressions.
COLOR HINT = "color-hint"
Interpolation hint between color stops.
SEPARATOR = ","
Separates sequence items.
COLOR STOP = "color-stop"
Gradient color stop input.
SEQUENCE CLOSE = "]"
Closes the current sequence.
OR = "|"
Splits the current group into alternative branches.
COLOR STOP = "color-stop"
Gradient color stop input.
GROUP CLOSE = ")"
Closes the current group.
SEQUENCE CLOSE = "]"
Closes the current sequence.
OR = "|"
Splits the current group into alternative branches.
COLOR STOP = "color-stop"
Gradient color stop input.
GROUP CLOSE = ")"
Closes the current group.
SEPARATOR = ","
Separates sequence items.
REPEAT = "~"
Repeats the next expression zero or more times.
GROUP = "("
Grouped expression or alternatives.
SEQUENCE = "["
Ordered list of expressions.
COLOR HINT = "color-hint"
Interpolation hint between color stops.
SEPARATOR = ","
Separates sequence items.
COLOR STOP = "color-stop"
Gradient color stop input.
SEQUENCE CLOSE = "]"
Closes the current sequence.
OR = "|"
Splits the current group into alternative branches.
COLOR STOP = "color-stop"
Gradient color stop input.
GROUP CLOSE = ")"
Closes the current group.
SEQUENCE CLOSE = "]"
Closes the current sequence.
END = "."
Pattern ends here.
Explain pattern
Pattern
BEGIN "^" - Pattern starts here.
SEQUENCE "[" - Ordered list of expressions.
GROUP "(" - Grouped expression or alternatives.
SEQUENCE "[" - Ordered list of expressions.
CONFIG "config" - Gradient configuration input.
SEPARATOR "," - Separates sequence items.
COLOR STOP "color-stop" - Gradient color stop input.
SEPARATOR "," - Separates sequence items.
GROUP "(" - Grouped expression or alternatives.
SEQUENCE "[" - Ordered list of expressions.
COLOR HINT "color-hint" - Interpolation hint between color stops.
SEPARATOR "," - Separates sequence items.
COLOR STOP "color-stop" - Gradient color stop input.
SEQUENCE CLOSE "]" - Closes the current sequence.
OR "|" - Splits the current group into alternative branches.
COLOR STOP "color-stop" - Gradient color stop input.
GROUP CLOSE ")" - Closes the current group.
SEQUENCE CLOSE "]" - Closes the current sequence.
OR "|" - Splits the current group into alternative branches.
COLOR STOP "color-stop" - Gradient color stop input.
GROUP CLOSE ")" - Closes the current group.
SEPARATOR "," - Separates sequence items.
REPEAT "~" - Repeats the next expression zero or more times.
GROUP "(" - Grouped expression or alternatives.
SEQUENCE "[" - Ordered list of expressions.
COLOR HINT "color-hint" - Interpolation hint between color stops.
SEPARATOR "," - Separates sequence items.
COLOR STOP "color-stop" - Gradient color stop input.
SEQUENCE CLOSE "]" - Closes the current sequence.
OR "|" - Splits the current group into alternative branches.
COLOR STOP "color-stop" - Gradient color stop input.
GROUP CLOSE ")" - Closes the current group.
SEQUENCE CLOSE "]" - Closes the current sequence.
END "." - Pattern ends here.