Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Can I have some text-only programs to test my Turing compiler?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
trishume




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Aange10




PostPosted: 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?
trishume




PostPosted: 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!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: