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

fix: complex command parsing #60

Closed
wants to merge 2 commits into from
Closed

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Sep 7, 2024

While if and for aren't working yet, they were also parsed as "simple" commands mistakenly. I tried to fix it, so that we hit the correct todo!(...).

@wolfv
Copy link
Member Author

wolfv commented Sep 7, 2024

I added a few test files, just for parsing. But it doesn't quite work yet (other parsing areas are then broken). Maybe @prsabahrami has the right ideas on how to fix this .

@prsabahrami
Copy link
Contributor

prsabahrami commented Sep 7, 2024

@wolfv I have implemented how I think this should be done in the branch experiment_complex_commands. Though there are brace groups used in loops which I am not yet sure how to support. You can find the commented in for_loop.sh script. Should I open a PR for you to check the other branch out?

@wolfv
Copy link
Member Author

wolfv commented Sep 7, 2024

yes, please! the earlier the better IMO :)

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.

2 participants