You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was very surprised to see that the evaluator not uses a parser.
I think it would greatly profit from one.
You can manage syntax way easier, and jump around the tree for loops etc.
The code now is to complex for me to help with bugfixes.
(It must not be a 1 file project, you could manage code easier if it would be splitted (node lexer parser definitions etc.) You can combine them easy with a regex for a 1 file version)
I coded such a parser once, only for math expresions. But it was at the beginning of my c# lerning, so the code is terrible and I can not but it in to public.
But I can sey, your project would greatly benefit from a tree parser.
I don't even know how you get it done without. I found this project in the hope I could replace my old code.
Hope you can upgrade it. You will need then less code and coplexity.
@Alisis33 feel free to check https://github.com/WattleScript/wattlescript. Currently I'm working on gradual typing, help is welcome :)
Syntax is described in wiki proposals & tests
EE is great (and I love one file/minimal dependencies way it works) but due to its nature it doesn't scale well.
@codingseb in case you'd be interested we would definitely welcome your contributions as well <3
The evaluator not throw a exeption it too many parameters ar given.
Sin(1,2,3,4)
(Similar to Sign error 1 * ---+-+-2)
The text was updated successfully, but these errors were encountered: