calliope-project / calliope

A multi-scale energy systems modelling framework

Home Page:https://www.callio.pe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clearer parsing errors

sjpfenninger opened this issue · comments

Problem description

On encountering parsing errors with pyparsing we should print out only:

  1. The expression in which the error occurs
  2. The error message
  3. The location (char / column number)

If possible, we could draw a character to highlight the location in the expression (1).

Calliope version

0.7

Fixed in #436