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

don't use tokens for build new ast for inline #532

Merged
merged 2 commits into from
Aug 10, 2018
Merged

don't use tokens for build new ast for inline #532

merged 2 commits into from
Aug 10, 2018

Conversation

alexander-akait
Copy link
Member

I studied in detail and came to the conclusion that this is the only working solution at the moment, not breaking the code.

Why?
Inline nodes can be in branch of control structures and it is very hard implement. (example inline node can be inside else if or else). Introduce new ast nodes (or andd based on tokens) is very bad solution (i vote doesn't do this never), many nodes can contain branches like test, esle, testExpr, arguments and etc, we will have to run through them - it is a lot of lines of code and a lot of bugs. Better wait fix in parses (or fix it and send PR).

@czosel
Copy link
Collaborator

czosel commented Aug 10, 2018

Hmm, good point about the branches - probably post-processing the AST is really not the way to move forward and this should be changed in the parser instead.

@czosel czosel merged commit 61a4205 into master Aug 10, 2018
@czosel czosel deleted the issue-531 branch August 10, 2018 19:24
This was referenced Aug 10, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants