Module: Parslet::Atoms::Precedence
- Included in:
- Base
- Defined in:
- lib/parslet/atoms.rb
Overview
The precedence module controls parenthesis during the #inspect printing of parslets. It is not relevant to other aspects of the parsing.
Constant Summary collapse
- BASE =
everything else
(prec+=1)
- LOOKAHEAD =
&SOMETHING
(prec+=1)
- REPETITION =
‘a’+, ‘a’?
(prec+=1)
- SEQUENCE =
‘a’ ‘b’
(prec+=1)
- ALTERNATE =
‘a’ | ‘b’
(prec+=1)
- OUTER =
printing is done here.
(prec+=1)