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

Link to this type

comparison_operators() View Source
comparison_operators() :: :== | :!= | :> | :< | :>= | :<= | :contains

Link to this type

conditions() View Source
conditions() :: [
  {:condition,
   {Liquid.Combinators.LexicalToken.value(), comparison_operators(),
    Liquid.Combinators.LexicalToken.value()}
   | [{:logical, [{:and, General.condition()}]}]
   | [{:logical, [{:or, General.condition()}]}]}
]

Link to this type

filter() View Source
filter() :: [
  filter: String.t(),
  params: [{:value, Liquid.Combinators.LexicalToken.value()}]
]

Link to this type

liquid_variable() View Source
liquid_variable() :: [
  liquid_variable: Liquid.Combinators.LexicalToken.variable_value(),
  filters: [filter()]
]

Link to this section 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

Link to this function

not_empty_liquid_variable() View Source

Start of liquid Tag

Start of liquid Variable

Link to this function

valid_tag_name() View Source
valid_tag_name() :: NimbleParsec.t()

Parses a Liquid tag name, isolates tag name from markup. It represents the tag name parsed until end tag %}

Link to this function

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, , -]

Valid variable name which is a tagged variable_definition

Link to this function

variable_name_for_assignment() View Source

Horizontal Tab (U+0009) + Space (U+0020) + Carriage Return (U+000D) New Line (U+000A)