Liquex.Parser.Field (liquex v0.10.2) View Source

Helper parsers for parsing fields

Link to this section Summary

Link to this section Functions

Link to this function

field(combinator \\ empty())

View Source

Specs

Parses a field

Examples

* "my_variable"
* "my_variable.child_value"
* "my_variable[0]"
* "my_variable.child.value[3]"
Link to this function

identifier(combinator \\ empty())

View Source

Specs

identifier(NimbleParsec.t()) :: NimbleParsec.t()

Parses an identifier

Identifiers can start with any letter or underscore.

  • The remaining characters may include digits
  • May end in a question mark (?)

Examples

* "my_variable"
* "is_valid?"
* "variable_1"