parser: Fix off-by-one in line numbers

Signed-off-by: Michael Buesch <m@bues.ch>
parser: Add method to parse text

Signed-off-by: Michael Buesch <m@bues.ch>
gui: Add live-validation

Signed-off-by: Michael Buesch <m@bues.ch>