Skip to content

Commit 809a92d

Browse files
author
arthurmelton
committed
idk why this does not work will do it later
1 parent 297bdb0 commit 809a92d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

examples/test.nys

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
use audio;
2-
audio();
1+
func(count(number)) {
2+
dec int number = number+1;
3+
log(number);
4+
}
5+
count(0);

src/run.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ pub fn run(
494494
let mut pass_vec: Vec<String> = Vec::new();
495495
pass_vec.push("a".to_string());
496496
pass_vec.push("(".to_string());
497+
if contents[x+1] == "int" {
498+
pass_vec.push("math".to_string());
499+
pass_vec.push("(".to_string());
500+
}
497501
loop {
498502
if contents[position] == "\n" || contents[position] == ";" {
499503
break;

0 commit comments

Comments
 (0)