Handle multiple script tags.

This commit is contained in:
Brad Nelson
2023-02-24 21:04:26 -08:00
parent da324bdf70
commit 244f16b898
5 changed files with 109 additions and 12 deletions

View File

@ -16,11 +16,17 @@ limitations under the License.
-->
<script type="text/forth">
: square dup * ;
4 square . cr
." Starting Tests..." cr
</script>
<script type="text/forth" src="script_test.fs"></script>
<script src="ueforth.js"></script>
<script type="text/forth">
colors
bye
." Checking for 123..." cr
123 = assert
." Checking for foobar..." cr
2 foobar 16 = assert
." Script Test Passes" cr
2 fg ." SUCCESS" cr
: halt begin 100000 ms again ;
halt
</script>