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

homogeneous representation for commands #761

Open
andychu opened this issue May 25, 2020 · 2 comments
Open

homogeneous representation for commands #761

andychu opened this issue May 25, 2020 · 2 comments

Comments

@andychu
Copy link
Contributor

andychu commented May 25, 2020

The problem is that in ASDL, simple commands, assignment statements, for loops, etc. are all different types. But sometimes we want to treat them uniformly.

They should all have a left and a right position at least? (And maybe more positions after that?)

Maybe:

  • redirects? Can those be inherited? Another option is to refactor the schema...
@andychu
Copy link
Contributor Author

andychu commented Jan 11, 2021

related to #882

@andychu
Copy link
Contributor Author

andychu commented Jan 11, 2021

Maybe a compromise at first: every command has a start_spid and end_spid ? Right now that's not consistent.

There could be more spids after the first two for translation?


Easier solution: We can just print the line of the start spid. We don't need an end spid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant