-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lot's of bugs have been fixed but todo list growed a lot
- Loading branch information
1 parent
2a8dc6b
commit 3b7fc53
Showing
36 changed files
with
260 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
fun main() { | ||
let num: int = 0 | ||
let _num: int = 0 | ||
|
||
let num1: int = 1 + 1 | ||
let num2: int = 1 - 1 | ||
let num3: int = 1 * 1 | ||
let num4: int = 1 / 1 | ||
let _num1: int = 1 + 1 | ||
let _num2: int = 1 - 1 | ||
let _num3: int = 1 * 1 | ||
let _num4: int = 1 / 1 | ||
|
||
let num5: int = (1 + ((1 * 2))) | ||
let _num5: int = (1 + ((1 * 2))) | ||
|
||
let wow_number: float = ((10.0 * 20) + (328 + 1 - 2390 - 21 + 21)) / 2 | ||
let _wow_number: float = ((10.0 * 20) + (328 + 1 - 2390 - 21 + 21)) / 2 | ||
|
||
let str1: string = "String" | ||
let yeah: bool = true | ||
|
||
// println(str1) | ||
let _str1: string = "String" | ||
let _yeah: bool = true | ||
} |
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,3 +1,3 @@ | ||
fun main() { | ||
let negative: int = -2 | ||
let __negative: int = -2 | ||
} |
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,5 +1,5 @@ | ||
fun main() { | ||
let first_var: int = 1 | ||
let next_var: int = first_var | ||
let next_var_with_math: int = (first_var * 2) / next_var | ||
let __first_var: int = 1 | ||
let __next_var: int = __first_var | ||
let __next_var_with_math: int = (__first_var * 2) / __next_var | ||
} |
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,5 +1,5 @@ | ||
let first_letter_name: char = 'B' | ||
let __first_letter_name: char = 'B' | ||
|
||
fun main() { | ||
let second_letter_name: char = 'r' | ||
let __second_letter_name: char = 'r' | ||
} |
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,5 +1,5 @@ | ||
@import_c "stdio.h" | ||
|
||
fun main() { | ||
println("Siema") | ||
|
||
} |
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,7 +1,7 @@ | ||
@import "std.ba" | ||
|
||
fun main() -> int { | ||
let str: string = iota(20, 10) | ||
let str: string = parse_string_to_int(20, 10) | ||
println(str) | ||
return 0 | ||
} |
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,8 +1,8 @@ | ||
@import "std.ba" | ||
|
||
fun main() { | ||
for let i: int = 0; i < 10; i++ { | ||
printnum(i) | ||
println("\n") | ||
} | ||
// for let i: int = 0; i < 10; i++ { | ||
// printnum(i) | ||
// println("\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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
@import "std.ba" | ||
|
||
fun main() { | ||
for let i: int = 0; i != 1000; i++ { | ||
if (i % 15) == 0 { | ||
println("FizzBuzz\t") | ||
} elif (i % 3) == 0 { | ||
println("Fizz\t") | ||
} elif (i % 5) == 0 { | ||
println("Buzz\t") | ||
} else { | ||
printnum(i) | ||
println("\t") | ||
} | ||
} | ||
// for let i: int = 0; i != 1000; i++ { | ||
// if (i % 15) == 0 { | ||
// println("FizzBuzz\t") | ||
// } elif (i % 3) == 0 { | ||
// println("Fizz\t") | ||
// } elif (i % 5) == 0 { | ||
// println("Buzz\t") | ||
// } else { | ||
// printnum(i) | ||
// println("\t") | ||
// } | ||
// } | ||
} |
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,11 +1,18 @@ | ||
@import "std.ba" | ||
// This is just a concept for now but i will | ||
// go with this syntax | ||
|
||
struct Person { | ||
name: string, | ||
age: i16 | ||
} | ||
// ------------------ | ||
|
||
// @import "std.ba" | ||
|
||
// struct Person { | ||
// name: string, | ||
// age: i16 | ||
// } | ||
|
||
fun main() { | ||
let me: Person = new Person{ "My name", 60 } | ||
fmt_print("name: %s, age: %d", me.name, me.age) | ||
} | ||
// let me: Person = new Person{ "My name", 60 } | ||
// fmt_print("name: %s, age: %d", me.name, me.age) | ||
} | ||
|
||
// ------------------ |
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
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,6 +1,10 @@ | ||
@import "std.ba" | ||
|
||
let text: string = "okokok" | ||
|
||
fun main() -> int { | ||
fmt_print(text, 0) | ||
if 1 && 1 { | ||
fmt_print(text) | ||
} | ||
return 0 | ||
} |
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.