Skip to content

Commit

Permalink
fix up ruby backend (#20)
Browse files Browse the repository at this point in the history
bring back hashbang in ruby header, and lang_ruby in systest
  • Loading branch information
matslina authored Feb 8, 2025
1 parent d2adb2b commit b21d2a2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lang_generic/DEVEL
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Postcondition is:
+--------------+------------------------------------------------------------+
| post_RMUL2 | )%0x100 |
+--------------+------------------------------------------------------------+
| header | #!/usr/bin/ruby |
| header | #!/usr/bin/env ruby |
| | def run(in_, out) |
| | m=[0]*0x10100;p=127; |
| | out.binmode |
Expand Down
21 changes: 12 additions & 9 deletions lang_generic/ruby.b
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@
<[-
# header
+++++++++++++++++++[-<++<+++++<++++++<++
+++<++<+++>>>>>>]<<+++++.+.+.>------.<<.
+++.-------.<<++.>>>+++.<.<.<++++.>>>>.<
<+.++++++.-.<<---.>>>>>++++++++++.<....<
++++.<<<<++++.>>----.<+++++++.>++.<-----
-.++++++.>>++++.<<+.-.+.-..<--.>>>>+++.<
<<<++.>+.+.+++++.<--.>>>>>>.<....<-.<---
.-.<<---------.>+++++.+++++++.>>-.-.++.<
<-----.+.>>>>.<<<<<<[[-]>]<
+++++++++++++++++++++[-<++<+++++<++<++++
+<+++++<+++>>>>>>]<-------.--.<<+++++.>+
+++++++++++.--.-.<.<-------.<.+++++.>>.<
+++.<.>>>++++.>-.<----.+++.<<---.>>++++.
>>++++++++++.<<<<++.+.+.>>>.<-------.+++
.<<<.>>-------.<+++.<.>----------.>++++.
>>.<<<<+.>>>.-.<---.>>>.<....<<<<--.<--.
>>----.>+++++++.<++.>------.++++++.>++++
.<+.-.+.-..<<<--.>+++.<++.>>>+.+.+++++.+
+++.>>>.<....<<<<-.>>>---.-.<-----------
--.<+++++.+++++++.<-.-.++.>-----.+.>>>>.
[<]>[[-]>]<
]>]
<[-
Expand Down
2 changes: 1 addition & 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_go lang_tcl lang_java lang_rust"
ALL_TARGETS="lang_c 386_linux lang_go lang_tcl lang_ruby 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

0 comments on commit b21d2a2

Please sign in to comment.