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

core: support multi-level break, continue from loops #261

Merged
merged 3 commits into from
May 24, 2023

Conversation

msteveb
Copy link
Owner

@msteveb msteveb commented May 13, 2023

Experimental proposal for multi-level loop break, continue.

loop i 5 {
	loop j 6 {
		;# This breaks out of both loops
		break 2
	}
}

Comments welcome

loop i 5 {
	loop j 6 {
		# This breaks out of both loops
		break 2
	}
}

Signed-off-by: Steve Bennett <steveb@workware.net.au>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
@msteveb msteveb force-pushed the while-continue-multilevel branch from dc4ef51 to f39b17c Compare May 24, 2023 22:54
@msteveb msteveb merged commit 5246dae into master May 24, 2023
2 of 3 checks passed
@msteveb msteveb changed the title core: support multi-level while, break from loops core: support multi-level break, continue from loops May 24, 2023
@msteveb msteveb deleted the while-continue-multilevel branch June 21, 2023 22:34
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.

None yet

1 participant