Open mingodad opened 11 months ago
Hello. I am not yacc expert but seems that S are definitions for commands, while K are definitions for funcitions..
Thank you for pointing out !
Looking again in the code, I found a place where it choose experres
or statres
but I need to look in more depth to find a way to express it in a way that's accepted by playground.
Is it intentional ?
I just added the
sc-im
grammar to https://mingodad.github.io/parsertl-playground/playground/ an online yacc/lex editor/tester and noticed thatK_FMT
andS_FMT
are equal tofmt
and the parser was not parsing properly theS_FMT
command because it was recognizingK_FMT
instead, so temporarily I changedK_FMT
tokfmt
to allow to parse thea.sc
example.On https://mingodad.github.io/parsertl-playground/playground/ select
SC-im spreadsheet parser
fromExamples
then clickParse
to see the parser tree.