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

Implement FOR/ROF statements in parser expansion #70

Merged
merged 11 commits into from
May 8, 2021

Conversation

ian-h-chamberlain
Copy link
Member

@ian-h-chamberlain ian-h-chamberlain commented Apr 11, 2021

Closes #39

Tasks remaining:

  • Substitute lines based on expression evaluation of FOR block
  • Evaluate FOR expression using labels collected thus far
  • Use the index of the FOR as a label within the block when expanding
  • Stringization of index while within the block (Implement stringization of loop indices in FOR loops #72)

ian-h-chamberlain and others added 11 commits April 11, 2021 14:02
For now, the index label is not handled at all, but we can at least
"copy+paste" statements multiple times based on the expression value
Some of the load file test cases don't rely on FOR stringization or
indices, so for these test cases we can move them out of the
"unimplemented" directory.
We could also substitute some other label usages this way, but it can
cause off-by errors if the offset might be impacted by a FOR loop
This fixes parsing on some of the test entries
@ian-h-chamberlain ian-h-chamberlain merged commit b4b92c7 into develop May 8, 2021
@ian-h-chamberlain ian-h-chamberlain deleted the ian/forrof-statement branch May 8, 2021 21:54
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.

Expand FOR expressions + associated labels
1 participant