Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emmy now displays the correct starting position of faulty token as well as an ^ (arrow) at the position of a single character token while displaying multiple arrows for the length of multi-character token: old behaviour: $ emmy "1+-test" 2023/06/19 21:37:55 error: unexpected '-' (MINUS) at position 2 1+-test ^ unexpected token 2023/06/19 21:37:55 error: unexpected 'test' (IDENTIFIER) at position 3 1+-test ^ unexpected token 2023/06/19 21:37:55 semantic errors found, no evaluation of ast possible = NaN new behaviour: $ emmy "1+-test" 2023/06/19 21:37:05 error: unexpected '-' (MINUS) at position 2 1+-test ^ unexpected token 2023/06/19 21:37:05 error: unexpected 'test' (IDENTIFIER) at position 3 1+-test ^^^^ unexpected token 2023/06/19 21:37:05 semantic errors found, no evaluation of ast possible -> NaN The prompt was changed from '=' to '->'
- Loading branch information