docs-v2/content/flux/v0/spec/notation.md

1.2 KiB

title description menu weight aliases
Notation Notation principles for the Flux functional data scripting language.
flux_v0_ref
parent name
Flux specification Notation
101
/influxdb/v2/reference/flux/language/notation/
/influxdb/cloud/reference/flux/language/notation/

The syntax of the language is specified using Extended Backus-Naur Form (EBNF):

Production  = production_name "=" [ Expression ] "." .
Expression  = Alternative { "|" Alternative } .
Alternative = Term { Term } .
Term        = production_name | token [ "…" token ] | Group | Option | Repetition .
Group       = "(" Expression ")" .
Option      = "[" Expression "]" .
Repetition  = "{" Expression "}" .

A production is an expression constructed from terms and the following operators, in increasing precedence:

|   alternation
()  grouping
[]  option (0 or 1 times)
{}  repetition (0 to n times)

Lowercase production names are used to identify lexical tokens. Non-terminals are in camel case. Lexical tokens are enclosed in double quotes ("") or back quotes ().

{{< page-nav prev="/flux/v0/spec/" next="/flux/v0/spec/representation/" >}}