module

Sthx::DSL

If included, defines the following operators on several standard objects (String, Char, Range) and all of Synthax rules:

  • *: repeat (see Sthx.repeat)
  • &: sequence (see Sthx.seq)
  • |: first of (see Sthx.firstof)

Defines the following on Range and Synthax rules:

  • -: refuse (see Sthx.refuse)

Defines the following on Synthax rules:

  • ^: longest of (see Sthx.longestof)

Defines the following methods on String:

  • apply: see Sthx::Rule.apply
  • apply?: see Sthx::Rule.apply?
  • apply!: see Sthx::Rule.apply!