Skip to content

Commit

Permalink
chore: cleanup deps and fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
megatank58 committed Nov 28, 2024
1 parent 79b6a80 commit 094d9a3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 189 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxido"
version = "2.6.0"
version = "2.6.1"
edition = "2021"

[profile.release]
Expand All @@ -14,5 +14,4 @@ debug = true
[dependencies]
clap = { version = "3.1.18", features = ["derive"] }
codespan-reporting = "0.11.1"
inkwell = { version = "0.4.0", features = ["llvm17-0"] }
rustyline = "11.0.0"
2 changes: 1 addition & 1 deletion examples/echo.oxi
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
let a = read();
let a: str = read();

println(a);
6 changes: 3 additions & 3 deletions examples/factorial.oxi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let s = "10";
let s: str = "10";

let n = int(s);
let n: int = int(s);

fn factorial(n: int) -> int {
if n == 0 {
Expand All @@ -10,6 +10,6 @@ fn factorial(n: int) -> int {
return n * factorial(n - 1);
}

let f = factorial(n);
let f: int = factorial(n);

println(f);
4 changes: 2 additions & 2 deletions examples/pattern.oxi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let i = 1;
let j = 1;
let i: int = 1;
let j: int = 1;

loop {
if i > 5 {
Expand Down
8 changes: 4 additions & 4 deletions examples/search.oxi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ let a: vec<int> = [];

print("Enter number of values to be read: ");

let n = int(read());
let i = 0;
let n: int = int(read());
let i: int = 0;

loop {
if i == n {
Expand All @@ -16,9 +16,9 @@ loop {

print("Enter value to be searched: ");

let x = int(read());
let x: int = int(read());

let found = false;
let found: bool = false;

i = 0;

Expand Down
177 changes: 0 additions & 177 deletions llvm.sh

This file was deleted.

0 comments on commit 094d9a3

Please sign in to comment.