Skip to content

Commit

Permalink
lgtm
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Feb 10, 2024
1 parent 1e7575b commit dc0afdc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
5 changes: 1 addition & 4 deletions adana-script/dynamic_lib/example_lib_src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion adana-script/dynamic_lib/example_lib_src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ edition = "2021"
crate-type = ["dylib"]

[dependencies]
adana-script-core = "0.16.1"
adana-script-core = { path = "./../../../adana-script-core" }
#adana-script-core = { git = "https://github.com/nbittich/adana-script-core.git", branch = "feature/bitwise-and-new-ints" }

anyhow = "1.0.79"
Expand Down
Binary file modified adana-script/dynamic_lib/libplugin_example.so
Binary file not shown.
4 changes: 2 additions & 2 deletions adana-script/examples/example1.adana
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ students = [student_1, student_2, student_3]

sort = (students) => {
sorted = false
while(!sorted) {
while !sorted {
sorted = true
len = length(students)-1
for i in 0..len {
left = students[i]
right = students[i+1]
if(left.note > right.note) {
if left.note > right.note {
sorted = false
students[i] = right
students[i+1] = left
Expand Down
6 changes: 3 additions & 3 deletions adana-script/file_tests/string.adana
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ split = (s, c) => {
count = 0
while count < length(s) {
curr = s[count]
if(buf == "aka") {
if buf == "aka" {
return [buf]
}
if(curr != c) {
if curr != c {
buf = buf + s[count]
}else{
} else {
res = res + [buf]
buf = ""
}
Expand Down

0 comments on commit dc0afdc

Please sign in to comment.