Multiple characters inside character literal causes exception

Issue #181 resolved
Former user created an issue

Jastadd gives a "hard to debug" error If the user accidentally enters multiple characters inside a character literal. The compiler gives the error:

Error at xxx.jrag: exception occurred while parsing

This error is a pain to debug in large files with many changes. It would be neat if it could give a proper syntax error instead.

To reproduce the problem simply enter the following into an aspect:

syn boolean FIdUse.test() = "foo".equals('bar');

Comments (1)

  1. Jesper Öqvist

    Improved lexical error feedback

    • lexical errors, such as malformed character literals, now report which line and column the error occurred at

    fixes #181 (bitbucket)

    → <<cset 996f4cc365d1>>

  2. Log in to comment