Liquid v1.0.0-alpha.1 Liquid.Combinators.General View Source
General purpose combinators used by almost every other combinator
Link to this section Summary
Functions
Parse and ignore an assign symbol
Comma without spaces
Comparison operators: == != > < >= <=
End of liquid Tag
End of liquid Variable
Filter parameters structure: it acepts any kind of parameters with the following structure: start char: ':' plus optional: parameters values [value]
Filter basic structure, it acepts any kind of filter with the following structure: start char: '|' plus filter's parameters as optional: ':' plus optional: parameters values [value]
Remove all :whitespace
All utf8 valid characters or empty limited by start of tag
Logical operators:
and or
Start of liquid Tag
Start of liquid Variable
Parses a Liquid tag name, isolates tag name from markup. It represents the tag name parsed
until end tag %}
Valid variable definition represented by: start char [A..Z, a..z, ] plus optional n times [A..Z, a..z, 0..9, , -]
Valid variable name which is a tagged variable_definition
Horizontal Tab (U+0009) + Space (U+0020) + Carriage Return (U+000D) New Line (U+000A)
Link to this section Types
comparison_operators()
View Source
comparison_operators() :: :== | :!= | :> | :< | :>= | :<= | :contains
comparison_operators() :: :== | :!= | :> | :< | :>= | :<= | :contains
conditions()
View Source
conditions() :: [
{:condition,
{Liquid.Combinators.LexicalToken.value(), comparison_operators(),
Liquid.Combinators.LexicalToken.value()}
| [{:logical, [{:and, General.condition()}]}]
| [{:logical, [{:or, General.condition()}]}]}
]
conditions() :: [
{:condition,
{Liquid.Combinators.LexicalToken.value(), comparison_operators(),
Liquid.Combinators.LexicalToken.value()}
| [{:logical, [{:and, General.condition()}]}]
| [{:logical, [{:or, General.condition()}]}]}
]
filter()
View Source
filter() :: [
filter: String.t(),
params: [{:value, Liquid.Combinators.LexicalToken.value()}]
]
filter() :: [ filter: String.t(), params: [{:value, Liquid.Combinators.LexicalToken.value()}] ]
liquid_variable()
View Source
liquid_variable() :: [
liquid_variable: Liquid.Combinators.LexicalToken.variable_value(),
filters: [filter()]
]
liquid_variable() :: [ liquid_variable: Liquid.Combinators.LexicalToken.variable_value(), filters: [filter()] ]
Link to this section Functions
assignment(symbol) View Source
Parse and ignore an assign symbol
cleaned_comma() View Source
Comma without spaces
codepoints() View Source
comparison_operators() View Source
Comparison operators: == != > < >= <=
condition() View Source
conditions(combinator) View Source
double_quoted_token() View Source
empty_liquid_variable() View Source
end_tag() View Source
End of liquid Tag
end_variable() View Source
End of liquid Variable
filter() View Source
Filter parameters structure: it acepts any kind of parameters with the following structure: start char: ':' plus optional: parameters values [value]
filter_param() View Source
Filter basic structure, it acepts any kind of filter with the following structure: start char: '|' plus filter's parameters as optional: ':' plus optional: parameters values [value]
filters() View Source
ignore_whitespaces() View Source
Remove all :whitespace
liquid_variable() View Source
literal_until_tag() View Source
All utf8 valid characters or empty limited by start of tag
logical_condition() View Source
logical_operators() View Source
Logical operators:
and or
not_empty_liquid_variable() View Source
quoted_token() View Source
quoted_variable_name() View Source
single_quoted_token() View Source
start_tag() View Source
Start of liquid Tag
start_variable() View Source
Start of liquid Variable
tag_param(name) View Source
valid_tag_name()
View Source
valid_tag_name() :: NimbleParsec.t()
valid_tag_name() :: NimbleParsec.t()
Parses a Liquid tag name, isolates tag name from markup. It represents the tag name parsed
until end tag %}
variable_definition() View Source
variable_definition_for_assignment() View Source
Valid variable definition represented by: start char [A..Z, a..z, ] plus optional n times [A..Z, a..z, 0..9, , -]
variable_name() View Source
Valid variable name which is a tagged variable_definition
variable_name_for_assignment() View Source
whitespace() View Source
Horizontal Tab (U+0009) + Space (U+0020) + Carriage Return (U+000D) New Line (U+000A)