From fbbd4474723a61ef960edd22a9d35eca87f7d9ae Mon Sep 17 00:00:00 2001 From: servostar Date: Sun, 3 Sep 2023 14:28:48 +0200 Subject: [PATCH] cleaned up repository removed build files from yardc edited gitea workflow --- .gitea/workflows/cargo.yaml | 4 +-- Cargo.toml | 1 + prog.vsasm | 64 --------------------------------- test.erpn | 55 ---------------------------- test.yard => tests/program.yard | 0 5 files changed, 3 insertions(+), 121 deletions(-) delete mode 100644 prog.vsasm delete mode 100644 test.erpn rename test.yard => tests/program.yard (100%) diff --git a/.gitea/workflows/cargo.yaml b/.gitea/workflows/cargo.yaml index 410641f..4cb6062 100644 --- a/.gitea/workflows/cargo.yaml +++ b/.gitea/workflows/cargo.yaml @@ -11,10 +11,10 @@ jobs: steps: - uses: actions/checkout@v3 - name: Cargo install - run: apt update && apt -y install cargo + run: curl https://sh.rustup.rs -sSf | sh - name: Test run: cargo test --verbose - name: Clippy run: cargo clippy --all-features -- -D warnings - name: Fmt - run: cargo fmt --check \ No newline at end of file + run: cargo fmt --check diff --git a/Cargo.toml b/Cargo.toml index 1e18722..11daf91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "Yard" version = "0.1.0" edition = "2021" +authors = [ "Sven Vogel" ] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/prog.vsasm b/prog.vsasm deleted file mode 100644 index a2b20b7..0000000 --- a/prog.vsasm +++ /dev/null @@ -1,64 +0,0 @@ -section[text] - -0xa2b0391a480300b: - push float 12 - -extern builtin 0x80b0eba54530cdc3 - -extern builtin 0xcd262c6e6c32473d - -0xc8c7a99bb88e156b: - call 0xa2b0391a480300b - call 0x80b0eba54530cdc3 - call 0x967b65e0e8f1394 - store 0x0 - push string "The Factorial of " - call 0xa2b0391a480300b - push string " is: " - load 0x0 - cat - cat - cat - call 0xe2e27e92bf406d33 - push int 0x0 - store 0x1 - load 0x1 - push int 0x9 - cmp gt int - jump-unless 0x1b - push string "" - load 0x1 - cat - call 0xe2e27e92bf406d33 - load 0x1 - push int 0x1 - add int - store 0x1 - jump 0xe - push int 0x0 - ret - -extern builtin 0xe2e27e92bf406d33 - -extern builtin 0x8207427514e5a880 - -0x967b65e0e8f1394: - load 0x0 - push int 0x1 - cmp not-eq int - jump-unless 0x6 - push int 0x1 - ret - load 0x0 - push int 0x1 - sub int - call 0x967b65e0e8f1394 - load 0x0 - mul int - ret - -extern builtin 0x3e6a3810b5f0c581 - -extern builtin 0x443bc4709cf7af32 - -extern builtin 0x23a9f04bf6903826 diff --git a/test.erpn b/test.erpn deleted file mode 100644 index 28e5ad9..0000000 --- a/test.erpn +++ /dev/null @@ -1,55 +0,0 @@ -extern function say_hello - -extern function print - -extern function println - -extern function readline - -extern function to_rat - -extern function to_int - -extern function parse_int - -extern function parse_rat - -extern function cos - -extern function pow - -extern function sin - -extern function tan - -extern function ln - -extern function sqrt - -fac: - Load Arg x - Load Int 2 - Gt Num(Int) - Unless - Load Int 1 - Yield - Load Arg x - Load Int 1 - Sub Int - Call fac - Load Arg x - Load Int 2 - Sub Int - Call fac - Add Int - -main: - Load Int 24 - Call fac - Store Int c - Load String "factorial: " - Load Var c - Cat Str - Call println - Load Int 0 - diff --git a/test.yard b/tests/program.yard similarity index 100% rename from test.yard rename to tests/program.yard