Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K_FMT and S_FMT are the same ? #836

Open
mingodad opened this issue Sep 15, 2023 · 2 comments
Open

K_FMT and S_FMT are the same ? #836

mingodad opened this issue Sep 15, 2023 · 2 comments

Comments

@mingodad
Copy link

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 that K_FMT and S_FMT are equal to fmt and the parser was not parsing properly the S_FMT command because it was recognizing K_FMT instead, so temporarily I changed K_FMT to kfmt to allow to parse the a.sc example.

On https://mingodad.github.io/parsertl-playground/playground/ select SC-im spreadsheet parser from Examples then click Parse to see the parser tree.

@andmarti1424
Copy link
Owner

Hello. I am not yacc expert but seems that S_ are definitions for commands, while K_ are definitions for funcitions..

@mingodad
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants