cleaning out stash

most of the stuff is now reimplemented
fragments still open (as interpreter is not working yet)
This commit is contained in:
Torsten Ruger
2018-03-19 16:25:27 +05:30
parent 7953ef3e39
commit 28ae1de59f
80 changed files with 0 additions and 2561 deletions

28
stash/parfait/helper.rb Normal file
View File

@@ -0,0 +1,28 @@
require_relative '../helper'
# Parfait test test just that, parfait.
#
# The idea is to have really really small main programs that test one very small thing
# AND return an exit code (or write stdout) that can be checked by
# compiling and running the thing remotely
#
module ParfaitTests
include RuntimeTests
def setup
@stdout = ""
@machine = Risc.machine.boot
Vm::Compiler.load_parfait
end
def main
runko = <<HERE
class Space < Object
int main()
PROGRAM
end
end
HERE
runko.sub("PROGRAM" , @main )
end
end