forked from ValeLang/Vale
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ValeLang#610 from Verdagon/regionsmerge8
Merging in regions branch's instantiator stage
- Loading branch information
Showing
167 changed files
with
9,013 additions
and
2,721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import v.builtins.panic.*; | ||
import v.builtins.panicutils.*; | ||
import v.builtins.drop.*; | ||
|
||
#!DeriveInterfaceDrop | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1 @@ | ||
import v.builtins.print.*; | ||
import v.builtins.str.*; | ||
|
||
func panic() __Never { | ||
return __vbi_panic(); | ||
} | ||
|
||
func panic(msg str) __Never { | ||
print(msg); | ||
print("\n"); | ||
return __vbi_panic(); | ||
} | ||
|
||
extern func __vbi_panic() __Never; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import v.builtins.print.*; | ||
import v.builtins.str.*; | ||
import v.builtins.panic.*; | ||
|
||
func panic() __Never { | ||
return __vbi_panic(); | ||
} | ||
|
||
func panic(msg str) __Never { | ||
print(msg); | ||
print("\n"); | ||
return __vbi_panic(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import v.builtins.panic.*; | ||
import v.builtins.panicutils.*; | ||
import v.builtins.logic.*; | ||
|
||
#!DeriveInterfaceDrop | ||
|
2 changes: 2 additions & 0 deletions
2
Frontend/Builtins/src/dev/vale/resources/runtime_sized_array_len.vale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
extern("vale_runtime_sized_array_len") | ||
func len<M Mutability, E>(arr &[]<M>E) int; |
3 changes: 3 additions & 0 deletions
3
Frontend/Builtins/src/dev/vale/resources/runtime_sized_array_mut_new.vale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
extern("vale_runtime_sized_array_mut_new") | ||
func Array<M Mutability, E Ref>(size int) []<M>E | ||
where M = mut; |
2 changes: 2 additions & 0 deletions
2
Frontend/Builtins/src/dev/vale/resources/runtime_sized_array_pop.vale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
extern("vale_runtime_sized_array_pop") | ||
func pop<E>(arr &[]<mut>E) E; |
2 changes: 2 additions & 0 deletions
2
Frontend/Builtins/src/dev/vale/resources/runtime_sized_array_push.vale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
extern("vale_runtime_sized_array_push") | ||
func push<E>(arr &[]<mut>E, newElement E) void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
extern func streq( | ||
aContainerStr str, | ||
aBegin int, | ||
aEnd int, | ||
bContainerStr str, | ||
bBegin int, | ||
bEnd int) | ||
bool; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.