Ayke van Laethem
|
fea56d4164
|
compiler: add support for full slice expression for slicing arrays
This was an oversight in the main commit for full slice expressions:
https://github.com/tinygo-org/tinygo/pull/472
This syntax is used by the regexp package, for example.
|
5 years ago |
Ayke van Laethem
|
4688664b41
|
compiler: implement full slice expression
This feature was introduced in Go 1.2 and is used by some standard
library packages.
|
5 years ago |
Ayke van Laethem
|
b837c94366
|
compiler: calculate max number of entries in slice at compile time
This avoids difficult multiply-with-overflow code and avoids a multiply
at runtime.
|
6 years ago |
Ayke van Laethem
|
914d383a96
|
all: update import paths to github.com/tinygo-org/tinygo
|
6 years ago |
Konstantin Yegupov
|
f44dff6f59
|
compiler: allow slicing arrays of a named type
|
6 years ago |
Ayke van Laethem
|
8cb7b583d8
|
compiler: support creating slices with uncommon initial len/cap types
|
6 years ago |
Ayke van Laethem
|
9bddaae04a
|
compiler: support any int type in slice indexes
Make sure the compiler will correctly compile indexes of type uint64,
for example.
|
6 years ago |
Ayke van Laethem
|
da89464a63
|
compiler: compare slice against nil
|
6 years ago |
Ayke van Laethem
|
963ba16d7b
|
compiler: add support for the append builtin
|
6 years ago |
Ayke van Laethem
|
f9edf7cc5c
|
test: add slice tests
|
6 years ago |