-
Notifications
You must be signed in to change notification settings - Fork 4
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
Parser modification #1
Comments
Can you share your project to see the whole thing ? |
Created a repository, but temporarily I had to disable the second 'for' type (with 'in') because the problems with creating a variable in block between '(', ';' |
I'm looking at it now. |
It seems that the problem is that you are parsing then third parameter of the
|
The problem is that I have no idea how to do it. Parsing is sequential, I don't know how to skip this block, and then go back to register it. In Jual 'for' block with JS syntax looks like this: https://github.com/sajonoso/jual/blob/master/src/lparser.c#L1654-L1683 Anyway thank you for your time. |
Should be very similar, why not you try first with
|
Hello, I really liked the idea of making the strongest scripting language (jit/ffi turns the language into a better one) with normal syntax. I've already fixed '++', '--' bug (not working without ';'), made arrays from 0, and etc. But for the perfect language I want to make 'for' like on JS/C++, but I do not know how to fix the problem is that the loop works incorrectly.
Parser 'for' code:
Here is a screenshot with the problem, the value changes between the 'for' check and the main block:
I do not know how to make a 'value change block' after 'main block'
The text was updated successfully, but these errors were encountered: