-
Notifications
You must be signed in to change notification settings - Fork 10
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 #44 from flax-lang/scope-refactor
- Loading branch information
Showing
122 changed files
with
2,897 additions
and
2,078 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// a.flx | ||
// Copyright (c) 2020, zhiayang | ||
// Licensed under the Apache License Version 2.0. | ||
|
||
// import libc as _ | ||
export a | ||
import libc | ||
|
||
import std::io as _ | ||
|
||
// import b | ||
// import d | ||
|
||
@entry fn main() | ||
{ | ||
print("uwu\n") | ||
} |
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,7 @@ | ||
// b.flx | ||
// Copyright (c) 2020, zhiayang | ||
// Licensed under the Apache License Version 2.0. | ||
|
||
export a | ||
import libc | ||
|
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,30 @@ | ||
// ultratiny.flx | ||
// Copyright (c) 2019, zhiayang | ||
// Licensed under the Apache License Version 2.0. | ||
|
||
export ultratiny | ||
|
||
// import libc as _ | ||
import a | ||
|
||
@entry fn main() | ||
{ | ||
// printf("q = %d\n", 37) | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
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,6 @@ | ||
// d.flx | ||
// Copyright (c) 2020, zhiayang | ||
// Licensed under the Apache License Version 2.0. | ||
|
||
export a | ||
import libc |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
export supertiny | ||
|
||
import std::io | ||
import libc as _ | ||
|
||
// import std::io | ||
|
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,24 @@ | ||
// tiniest.flx | ||
// Copyright (c) 2020, zhiayang | ||
// Licensed under the Apache License Version 2.0. | ||
|
||
import libc | ||
|
||
class wrapper<T> | ||
{ | ||
init() | ||
{ | ||
} | ||
|
||
static fn method<U>(a: T, b: U) | ||
{ | ||
libc::printf("t = %d, u = %d\n", typeid(a), typeid(b)); | ||
} | ||
} | ||
|
||
|
||
@entry fn main() | ||
{ | ||
wrapper::method(1, "asdf") | ||
libc::printf("hello, world\n") | ||
} |
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.