cenotelie / hime

Apache License 2.0
27 stars 4 forks source link

Bad white space definition on tutorials/*-kickstart #75

Open mingodad opened 3 years ago

mingodad commented 3 years ago

Trying to test the kickstart tutorial on Linux I was getting errors when testing the input with 2+3:

https://cenotelie.fr/projects/hime/tutorials/net-kickstart

ERROR (1, 4) Unexpected character ' ' (U+A)
ERROR (1, 4) Unexpected token " "; expected: $, *, /, +, -

It was due to bad white space definition:

WHITE_SPACE -> U+0020 | U+0009 | U+000B | U+000C ;

With this (from hime grammar) it works:

WHITE_SPACE -> U+0020 | U+0009 | U+000D /* CR */
                                |  U+000A /* LF */
                                |  U+000D U+000A /* CR LF */ ;