Skip to content

Commit

Permalink
fix: include the header file
Browse files Browse the repository at this point in the history
  • Loading branch information
v420v committed Sep 14, 2024
1 parent 7391968 commit 4729fc1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- Default args don't have to be on the end (WIP)

```go
#include "std.ibu"
#include "std/header.ibu"

func main() i32 {
let age i32 = 19;
Expand Down Expand Up @@ -73,7 +73,7 @@ $ ld -o <filename> <filename>.o lib/runtime.o lib/linux-syscall.o lib/std.o

#### Hello, world!
```go
#include "std.ibu"
#include "std/header.ibu"

func main() i32 {
printf("Hello, world!\n");
Expand All @@ -83,7 +83,7 @@ func main() i32 {

#### Variables
```go
#include "std.ibu"
#include "std/header.ibu"

func main() i32 {
let name *u8 = "Ibuki";
Expand All @@ -102,7 +102,7 @@ i8, i16, i32, i64, u0, u8, u16, u32, u64

#### If
```go
#include "std.ibu"
#include "std/header.ibu"

// Allows "13 <= age < 20" instead of "13 <= age && age < 20"

Expand Down Expand Up @@ -137,7 +137,7 @@ func main() i32 {

#### Variable length args
```go
#include "std.ibu"
#include "std/header.ibu"

// Variable-length arguments can be accessed using the built-in variable argv, argc

Expand All @@ -163,7 +163,7 @@ func main() i32 {

#### While
```go
#include "std.ibu"
#include "std/header.ibu"

func main() i32 {
// Like go's for loop, the condition is true if it is empty.
Expand All @@ -183,7 +183,7 @@ func main() i32 {

#### Arrays
```go
#include "std.ibu"
#include "std/header.ibu"

func main() i32 {
let arr [4]i32 = {1, 2, 3, 4};
Expand Down Expand Up @@ -233,7 +233,7 @@ func main() i32 {

#### Struct
```go
#include "std.ibu"
#include "std/header.ibu"

struct Person {
name *u8,
Expand All @@ -253,7 +253,7 @@ func main() i32 {
```

```go
#include "std.ibu"
#include "std/header.ibu"

struct Person {
name *u8,
Expand Down
2 changes: 1 addition & 1 deletion example/age.ibu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include "std.ibu"
#include "std/header.ibu"

func main() i32 {
let age i32 = 19;
Expand Down
2 changes: 1 addition & 1 deletion example/fizzbuzz.ibu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include "std.ibu"
#include "std/header.ibu"

func main() i32 {
let c i32 = 1;
Expand Down
2 changes: 1 addition & 1 deletion example/link.ibu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include "std.ibu"
#include "std/header.ibu"

struct User {
name *u8,
Expand Down

0 comments on commit 4729fc1

Please sign in to comment.