Exception: IgniterLang::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/igniter_lang/parser.rb

Overview


Parser — recursive descent


Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, line = nil, col = nil) ⇒ ParseError

Returns a new instance of ParseError.



254
255
256
257
258
# File 'lib/igniter_lang/parser.rb', line 254

def initialize(msg, line = nil, col = nil)
  super(msg)
  @line = line
  @col  = col
end

Instance Attribute Details

#colObject (readonly)

Returns the value of attribute col.



253
254
255
# File 'lib/igniter_lang/parser.rb', line 253

def col
  @col
end

#lineObject (readonly)

Returns the value of attribute line.



253
254
255
# File 'lib/igniter_lang/parser.rb', line 253

def line
  @line
end