Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include rust in docs and systest #18

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions DEVEL
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ The target platform is indicated by its backend index, as given in table 1.
+----------------------+------------------+
| lang_c | 2 |
+----------------------+------------------+
| lang_rust | 3 |
+----------------------+------------------+
| lang_go | 4 |
+----------------------+------------------+
| lang_ruby | 6 |
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Awib is a brainfuck compiler entirely written in brainfuck.
as brainfuck, Tcl, C and bash
- Awib has 6 separate backends and is capable of
compiling brainfuck source code to Linux executables (i386) and
five programming languages: C, Tcl, Go, Ruby and Java
five programming languages: C, Tcl, Go, Ruby, Java and Rust

Usage
-----
Expand All @@ -30,6 +30,8 @@ Awib will then produce output accordingly.
lang_go - Go code
lang_tcl - Tcl code
lang_java - Java code
lang_rust - Rust code

For instance, the following input would produce an executable hello
world-program for Linux:

Expand Down
7 changes: 6 additions & 1 deletion systest/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

ALL_TARGETS="lang_c 386_linux lang_ruby lang_go lang_tcl lang_java"
ALL_TARGETS="lang_c 386_linux lang_ruby lang_go lang_tcl lang_java lang_rust"
ALL_TEST_CASES=$(ls -1Sr *.b | cut -f1 -d.|xargs)
AWIB_BUILD="../awib.b"
ALL_METHODS="bfint gcc tclsh bash"
Expand Down Expand Up @@ -173,6 +173,11 @@ java Bf
EOF
chmod +x $out
;;

lang_rust)
mv $out $out.rs
rustc $out.rs -o $out
;;
esac

return 0
Expand Down
Loading