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

Enable data implied do #3

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Enable data implied do #3

wants to merge 10 commits into from

Conversation

konradha
Copy link
Owner

No description provided.

std::string loop_var_name = to_lower(x.m_var);
// auto sym = current_scope->resolve_symbol(array);
// if (sym != nullptr) throw SemanticError("Data statement loop variable cannot be have same name as other variable.", x.base.base.loc);
auto start = AST::down_cast<AST::Num_t>(x.m_start);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, we should use full type name instead of auto. I prefer verbosity over ease of typing.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really care about ease of typing, it's much more easy to read I think. But sure, I'll change it once I actually open a PR.

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