Explorer

definy.text-parse-expression

description
Read an expression from index
type
Fn(source: Record{text: String, bytes: List<Number>}, index: Number) -> Union{#ok(Record{value: @core.expression, next: Number}), #error(String)}
expression
fn(source$0, index$1) =>
  match @definy.text-parse-primary(source: $0, index: $1) {
    #error(message$2) =>
      #error($2),
    #ok(primary$3) =>
      @definy.text-parse-postfix(source: $0, expression: $3.value, index: $3.next)
  }
visibility
public
definy.text-parse-expression (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: 1Gu11qWX-osaGDRJc7SoA6Wl4MX_kgz6Nhv9ZO3wOns
content hash: YUW8LbmTuE-hkLhDc6IdcjiVZT4hfrjyLDIxQq98nMQ