parse_primary

Function parse_primary 

Source
pub fn parse_primary(input: &str) -> IResult<&str, Primary>
Expand description

Parse a primary expression.

Recognizes literals, references, collections, and parenthesized expressions, and emits a Primary node. Used internally by the expression parser.

ยงGrammar

The primary expression grammar follows:

primary = literal | reference | '(' expression ')'

Where:

  • literal represents any valid literal value (number, text, boolean, date, task)
  • reference represents a variable or field reference
  • expression represents any valid AIMX expression