len support for list and range (#103) #126

Merged
sb10q merged 3 commits from list_len into master 2021-12-09 11:58:25 +08:00
Collaborator
  • add len support for list and range
  • add missing range llvm type, or things like this will crash codegen
r = range(10)
for i in r:
	pass
- add `len` support for list and range - add missing `range` llvm type, or things like this will crash codegen ```python r = range(10) for i in r: pass ```
ychenfo added 1 commit 2021-12-09 01:22:02 +08:00
ychenfo changed title from `len` support for list and range to len support for list and range (#103) 2021-12-09 01:22:35 +08:00
ychenfo force-pushed list_len from 9957a50f95 to 4d2fd9582a 2021-12-09 01:37:31 +08:00 Compare
Owner

We should add unit tests for all these things... also for r = range(x)...

We should add unit tests for all these things... also for ``r = range(x)``...
sb10q merged commit 4d2fd9582a into master 2021-12-09 11:58:25 +08:00
sb10q deleted branch list_len 2021-12-09 11:58:31 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#126
No description provided.