hime icon indicating copy to clipboard operation
hime copied to clipboard

Bad white space definition on tutorials/*-kickstart

Open mingodad opened this issue 3 years ago • 0 comments

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 */ ;

mingodad avatar Aug 30 '21 07:08 mingodad