Class: L43Peg::Parsers::EolParser

Inherits:
L43Peg::Parser show all
Defined in:
lib/l43_peg/parsers/eol_parser.rb

Instance Attribute Summary

Attributes inherited from L43Peg::Parser

#fn, #name

Class Method Summary collapse

Methods inherited from L43Peg::Parser

#boxed, #call, #debug, #ignore, #lazy, #many, #map, #map_error, #satisfy

Class Method Details

.eol_parser(succeed_at_end: false) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/l43_peg/parsers/eol_parser.rb', line 8

def eol_parser(succeed_at_end: false)
  if succeed_at_end
    @__eol_at_end_parser__ ||= eol_at_end_parser
  else
    @__eol_parser__ ||= eol_not_end_parser
  end
end