Skip to content

Commit

Permalink
include rust in docs and systest (#18)
Browse files Browse the repository at this point in the history
matslina authored Aug 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 83efeb9 commit d776fcb
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions DEVEL
Original file line number Diff line number Diff line change
@@ -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 |
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
-----
@@ -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:

7 changes: 6 additions & 1 deletion systest/run.sh
Original file line number Diff line number Diff line change
@@ -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"
@@ -173,6 +173,11 @@ java Bf
EOF
chmod +x $out
;;

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

return 0

0 comments on commit d776fcb

Please sign in to comment.