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

Make Tags and Blocks Order-Independent #53

Open
dgp1130 opened this issue Dec 3, 2016 · 0 comments
Open

Make Tags and Blocks Order-Independent #53

dgp1130 opened this issue Dec 3, 2016 · 0 comments
Labels

Comments

@dgp1130
Copy link
Member

dgp1130 commented Dec 3, 2016

The way Uniform is structured, logic is not particularly order independent. Any statements or blocks in a Uniform program should be able to be rearranged with no affect to the actual code. This is mostly true, but there are a few instances where it is not. Identifier declarations currently must come before their usage. The selector tag must come before a sibling enabled or visible tag. There may also be some others I'm not aware of.

The main issue is to defer certain processing until the entire file is parsed. When an identifier is used, we can't check that it is declared until we parse the entire file. Same for the selector tag issue.

@dgp1130 dgp1130 added the bug label Dec 3, 2016
@dgp1130 dgp1130 changed the title Make Tags and Block Order-Independent Make Tags and Blocks Order-Independent Dec 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant