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

1
LOOKAHEAD =

&SOMETHING

2
REPETITION =

‘a’+, ‘a’?

3
SEQUENCE =

‘a’ ‘b’

4
ALTERNATE =

‘a’ | ‘b’

5
OUTER =

printing is done here.

6