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

go: Add slice expression #41

Merged
merged 2 commits into from
Oct 20, 2022
Merged

go: Add slice expression #41

merged 2 commits into from
Oct 20, 2022

Conversation

juliaogris
Copy link
Member

@juliaogris juliaogris commented Oct 18, 2022

Add slice parsing and evaluation for array and string. Ensure copy is made of array
elements when slicing. Dis-allow string indexing on left side of assignment:

s := "abc"
s[0] = "ABC" // doesn't make sense.

@github-actions
Copy link

github-actions bot commented Oct 18, 2022

firebase-deployment: https://evy-lang--41-c2vgspvj.web.app (b5014cd)

Copy link
Contributor

@camh- camh- left a comment

Choose a reason for hiding this comment

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

🥬

Parse slice expressions alongside index expressions. While at it, fix
small bug: disallow string indexing on left side of assignment - we do
not have a type for individual unicode points:

	s := "abc"
	s[0] = "ABC" // doesn't make sense.
Add slice evaluation for array and string. Ensure copy is made of array
elements when slicing.
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

2 participants