Computer Science Canada

Can I have some text-only programs to test my Turing compiler?

Author:  trishume [ Tue Feb 21, 2012 5:06 pm ]
Post subject:  Can I have some text-only programs to test my Turing compiler?

I am in the process of writing a Turing compiler and need some text-only programs as test data.

The ideal program extensively tests a certain part of the language and does not use the standard library.

I am working on making the language work before I work on graphics and the standard library. So far I have almost all commonly used language features except records and classes.

For those who are interested in the compiler you can check out the github page at https://github.com/Open-Turing-Project/OpenTuringCompiler

Anyway, give me all your text-based programs! Please?

Author:  Tony [ Tue Feb 21, 2012 5:26 pm ]
Post subject:  RE:Can I have some text-only programs to test my Turing compiler?

pulling out code from working examples in Tutorials is a good place to build up a test-suite.

Author:  Aange10 [ Tue Feb 21, 2012 5:36 pm ]
Post subject:  RE:Can I have some text-only programs to test my Turing compiler?

What do you mean

Quote:
The ideal program extensively tests a certain part of the language and does not use the standard library.

?

Are there any sections that specifically need testing? And define extensively?

What do you mean, doesn't use the standard library?

Author:  trishume [ Thu Feb 23, 2012 4:07 pm ]
Post subject:  Re: Can I have some text-only programs to test my Turing compiler?

I.E uses lots of strings but does not use predefined functions like index()

It really isn't necessary for the code to test a single part of the language. All that really matters is not using any function that you did not define.
Other than upper() and length(), since those are special language features.

And good idea Tony to look in tutorials. Thanks!


: