polystat / odin

Object Dependency Inspector
10 stars 2 forks source link

Parser error messages are not printed #16

Closed nikololiahim closed 2 years ago

nikololiahim commented 2 years ago

An example of parser error:

[37] Parsing failed with error: . Extra:
fastparse.Parsed$Extra@604f2bd2
java.lang.IllegalArgumentException: [37] Parsing failed with error: . Extra:
fastparse.Parsed$Extra@604f2bd2

The line fastparse.Parsed$Extra@604f2bd2 should be expanded into a more meaningful error message.

fizruk commented 2 years ago

@nikololiahim Please, attach corresponding EO code and current response (I believe it has been fixed in v0.2.0 (#21)).

nikololiahim commented 2 years ago

Since odin v0.2.0, parsing the following program:

[] > 12

yields the following error message:

:1:6: error: expected one of:
    '@'
    'a' ~ 'z'
1| [] > 12
  |      ^