Class: EBNF::PEG::Parser::Unmatched

Inherits:
Struct
  • Object
show all
Defined in:
lib/ebnf/peg/parser.rb,
lib/ebnf/peg/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expectingArray<Symbol,String> (readonly)



12
13
14
# File 'lib/ebnf/peg/parser.rb', line 12

def expecting
  @expecting
end

#linenoInteger (readonly)



9
10
11
# File 'lib/ebnf/peg/parser.rb', line 9

def lineno
  @lineno
end

#posInteger (readonly)



7
8
9
# File 'lib/ebnf/peg/parser.rb', line 7

def pos
  @pos
end

Instance Method Details

#to_sObject



527
528
529
# File 'lib/ebnf/peg/parser.rb', line 527

def to_s
  "syntax error, expecting #{expecting.map(&:inspect).join(', ')}"
end