diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-04-03 19:51:36 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-05-18 00:44:46 -0700 |
commit | d538b29302b6b9e01c83c16bbe355615a204c95e (patch) | |
tree | 0f6a6884f94f7a75f0c4f0303917e2deacc2ed37 | |
parent | 5d57bfa0e17ba4b435d3cb507c83b9d1cc5b0287 (diff) | |
download | mu-d538b29302b6b9e01c83c16bbe355615a204c95e.tar.gz |
apps that currently work
Here are the obvious dependencies of different apps: allocate: mu slice-to-string: mu survey new-stream: mu assort dquotes tests get-or-insert-slice: mu survey assort get-or-insert: mu survey So we'll get these working in the following order: tests dquotes assort survey It doesn't look like sigils uses any functions with modified signatures, but it doesn't work at the moment. Let's get the core self-hosted passes working first before we look at syntax sugar. examples -> self-hosted passes -> syntax sugar -> mu
-rwxr-xr-x | test_apps | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/test_apps b/test_apps index 06b658b3..d1c516c3 100755 --- a/test_apps +++ b/test_apps @@ -223,7 +223,7 @@ test $NATIVE && { # Phases of the self-hosted SubX translator. -for phase in hex survey pack assort dquotes tests +for phase in hex pack # survey assort dquotes tests do echo $phase ./bootstrap translate init.$OS 0[0-8]*.subx apps/subx-params.subx apps/$phase.subx -o apps/$phase @@ -238,63 +238,63 @@ do } done -# Higher-level syntax. - -# Certain phases of translation run native beyond this point. We're starting -# to go beyond functionality of the C++ bootstrap. - -echo sigils -./bootstrap translate init.$OS 0*.subx apps/subx-params.subx apps/sigils.subx -o apps/sigils -[ "$1" != record ] && git diff --exit-code apps/sigils -test $EMULATED && { - ./bootstrap run apps/sigils test - echo -} -test `uname` = 'Linux' && { - apps/sigils test - echo -} - -test $NATIVE || { echo 'there are more tests, but you need Linux to run them'; exit 0; } - -echo calls -cat init.$OS 0*.subx apps/subx-params.subx apps/calls.subx | apps/sigils > a.sigils -./bootstrap translate a.sigils -o apps/calls -[ "$1" != record ] && git diff --exit-code apps/calls -test $EMULATED && { - ./bootstrap run apps/calls test - echo -} -test `uname` = 'Linux' && { - apps/calls test - echo -} - -echo braces -cat init.$OS 0*.subx apps/subx-params.subx apps/braces.subx | apps/calls | apps/sigils > a.sigils -./bootstrap translate a.sigils -o apps/braces -[ "$1" != record ] && git diff --exit-code apps/braces -test $EMULATED && { - ./bootstrap run apps/braces test - echo -} -test `uname` = 'Linux' && { - apps/braces test - echo -} - -echo mu -cat init.$OS [0-9]*.subx apps/mu.subx | apps/braces | apps/calls | apps/sigils > a.sigils -./bootstrap translate a.sigils -o apps/mu -[ "$1" != record ] && git diff --exit-code apps/mu -test $EMULATED && { - ./bootstrap run apps/mu test - echo -} -test `uname` = 'Linux' && { - apps/mu test - echo -} +#? # Higher-level syntax. +#? +#? # Certain phases of translation run native beyond this point. We're starting +#? # to go beyond functionality of the C++ bootstrap. +#? +#? echo sigils +#? ./bootstrap translate init.$OS 0*.subx apps/subx-params.subx apps/sigils.subx -o apps/sigils +#? [ "$1" != record ] && git diff --exit-code apps/sigils +#? test $EMULATED && { +#? ./bootstrap run apps/sigils test +#? echo +#? } +#? test `uname` = 'Linux' && { +#? apps/sigils test +#? echo +#? } +#? +#? test $NATIVE || { echo 'there are more tests, but you need Linux to run them'; exit 0; } +#? +#? echo calls +#? cat init.$OS 0*.subx apps/subx-params.subx apps/calls.subx | apps/sigils > a.sigils +#? ./bootstrap translate a.sigils -o apps/calls +#? [ "$1" != record ] && git diff --exit-code apps/calls +#? test $EMULATED && { +#? ./bootstrap run apps/calls test +#? echo +#? } +#? test `uname` = 'Linux' && { +#? apps/calls test +#? echo +#? } +#? +#? echo braces +#? cat init.$OS 0*.subx apps/subx-params.subx apps/braces.subx | apps/calls | apps/sigils > a.sigils +#? ./bootstrap translate a.sigils -o apps/braces +#? [ "$1" != record ] && git diff --exit-code apps/braces +#? test $EMULATED && { +#? ./bootstrap run apps/braces test +#? echo +#? } +#? test `uname` = 'Linux' && { +#? apps/braces test +#? echo +#? } + +#? echo mu +#? cat init.$OS [0-9]*.subx apps/mu.subx | apps/braces | apps/calls | apps/sigils > a.sigils +#? ./bootstrap translate a.sigils -o apps/mu +#? [ "$1" != record ] && git diff --exit-code apps/mu +#? test $EMULATED && { +#? ./bootstrap run apps/mu test +#? echo +#? } +#? test `uname` = 'Linux' && { +#? apps/mu test +#? echo +#? } test $NATIVE || exit 0 echo "== translating using SubX (native only)" @@ -319,23 +319,23 @@ done # Phases of the self-hosted SubX translator. -for app in hex survey pack assort dquotes tests +for app in hex pack # survey assort dquotes tests do echo $app ./translate_subx init.$OS 0[0-8]*.subx apps/subx-params.subx apps/$app.subx diff apps/$app a.elf done -for app in sigils calls braces -do - echo $app - ./translate_subx init.$OS 0*.subx apps/subx-params.subx apps/$app.subx - diff apps/$app a.elf -done +#? for app in sigils calls braces +#? do +#? echo $app +#? ./translate_subx init.$OS 0*.subx apps/subx-params.subx apps/$app.subx +#? diff apps/$app a.elf +#? done # Mu translator -echo mu -./translate_subx init.$OS [0-9]*.subx apps/mu.subx -diff apps/mu a.elf +#? echo mu +#? ./translate_subx init.$OS [0-9]*.subx apps/mu.subx +#? diff apps/mu a.elf exit 0 |