Exception: IgniterLang::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- IgniterLang::ParseError
- Defined in:
- lib/igniter_lang/parser.rb
Overview
Parser — recursive descent
Instance Attribute Summary collapse
-
#col ⇒ Object
readonly
Returns the value of attribute col.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(msg, line = nil, col = nil) ⇒ ParseError
constructor
A new instance of ParseError.
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
#col ⇒ Object (readonly)
Returns the value of attribute col.
253 254 255 |
# File 'lib/igniter_lang/parser.rb', line 253 def col @col end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
253 254 255 |
# File 'lib/igniter_lang/parser.rb', line 253 def line @line end |