Spec grammar is out of sync
mingodad opened this issue · comments
Domingo Alvarez Duarte commented
Adding the grammar in https://github.com/koka-lang/koka/blob/master/doc/spec/grammar/parser.y to https://mingodad.github.io/parsertl-playground/playground/ (a Yacc/Lex
editor/tester) and trying the samples in samples/*
I've noticed that they fail due to the grammar been out of sync.
Tim Whiting commented
It looks like you might be missing the layout algorithm that should be run between lexing and parsing. It should insert a bunch of artificial braces based on indentation level.
Domingo Alvarez Duarte commented
Thank you for pointing it out !
I've update the parser and example with a note explaining that it doesn't automatically add {
, }
and ;
.