Parsing expression grammar: Difference between revisions

Content deleted Content added
Mrolle (talk | contribs)
Syntax: Add grouping and operator priorities.
Line 49:
#* ''And-predicate'': &''e''
#* ''Not-predicate'': !''e''
#* ''Group'': (''e'')
# Operator priorities are as follows:
{| class="wikitable"
|+ Caption text
|-
! Operator !! Priority
|-
| () || 5
|-
| &e, !e || 4
|-
| e*, e+, e? || 3
|-
| e<sub>1</sub> e<sub>2</sub> || 2
|-
| e<sub>1</sub> / e<sub>2</sub> || 1
|}
 
=== Semantics ===