cleaned up repository
Rust build & run checks / cargo-build-test (push) Failing after 7m10s
Details
Rust build & run checks / cargo-build-test (push) Failing after 7m10s
Details
removed build files from yardc edited gitea workflow
This commit is contained in:
parent
abe0617db9
commit
fbbd447472
|
@ -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
|
||||
run: cargo fmt --check
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
64
prog.vsasm
64
prog.vsasm
|
@ -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
|
55
test.erpn
55
test.erpn
|
@ -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
|
||||
|
Loading…
Reference in New Issue