We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, StdLib's Iterable.zs defines the Iterator-Member like so:
for(item as T) as Iterator<T> => iterate();
However, the parser expects:
for(T) { // What to do in here? }
Defined in ParsedDefinitionMember:
case K_FOR: { tokens.next(); tokens.required(T_BROPEN, "( expected"); List<IParsedType> loopVariableTypes = new ArrayList<>(); if (tokens.optional(T_BRCLOSE) == null) { do { loopVariableTypes.add(IParsedType.parse(tokens)); } while (tokens.optional(T_COMMA) != null); tokens.required(T_BRCLOSE, ") expected"); } ParsedFunctionBody body = ParsedStatement.parseFunctionBody(tokens); return new ParsedIterator(start, modifiers, annotations, loopVariableTypes, body); }
We need to define how the iterator members should look like and how it should behave.
Acceptance Criteria:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, StdLib's Iterable.zs defines the Iterator-Member like so:
However, the parser expects:
Defined in ParsedDefinitionMember:
We need to define how the iterator members should look like and how it should behave.
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: