Method: VerilogTools::ParseError#make_message
- Defined in:
- lib/HDLRuby/verilog_parser.rb
#make_message ⇒ Object
Generate the error message. NOTE: if you want to translate the error message, please redefine the function.
111 112 113 114 115 116 117 118 119 |
# File 'lib/HDLRuby/verilog_parser.rb', line 111 def if @filename then head = "Parse error in file '#{@filename}' " else head = "Parse error " end return head + "line #{@lpos}: " + @msg + ".\n" + "#{@line}\n" + ("-" * (@cpos)) + "^" end |