Class: PLang::Parser::Error

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

Class Method Summary collapse

Class Method Details

.syntax_error(line, src, i, msg) ⇒ Object



4
5
6
7
# File 'lib/parser/error.rb', line 4

def Error.syntax_error(line, src, i, msg)
  error = "#{line}:sintax error: #{msg}\n#{Error.show_error(src, i)}"
  raise error
end