Skip to content

Commit

Permalink
Merge pull request #1 from mealet/dev
Browse files Browse the repository at this point in the history
hiw-lang \ release \ v1.3.0
  • Loading branch information
mealet authored Jul 6, 2024
2 parents ea64c9c + 24f3cca commit 06b5d00
Show file tree
Hide file tree
Showing 11 changed files with 861 additions and 245 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
test.hiw
output
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hiw"
version = "1.2.7"
version = "1.3.0"
edition = "2021"

[dependencies]
Expand Down
21 changes: 21 additions & 0 deletions modules/std.hiw
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
define range(start, end) {
counter = 0;
while (counter < end + 1) {
op!(FETCH counter);
counter = counter + 1;
};

op!(ARR);
};

define type(arg) {
op!(FETCH arg TYPE);
};

define to_int(arg) {
op!(FETCH arg TO_INT);
};

define to_str(arg) {
op!(FETCH arg TO_STR);
};
Loading

0 comments on commit 06b5d00

Please sign in to comment.