jackendra Posted August 9, 2014 Share Posted August 9, 2014 (edited) I created a sort of converter, that converts simple scripting commands to teensy C source. I've decided to write in Python since its cross-platform, and most *unix/Linux machines come with it installed. I have decided to do this because some people may already own a teensy, and want what a teensy can do, but sadly dont have the C experience that others may have. Heres a little screenshot of what gets outputted: I did not implement a default delay yet, so you have to be a tad bit more careful when executing multiple 'commands' one after the other. What do you guys think, any questions? I wanted to say, I know alot of people have done something like this. so dont be too mad since I decided to do it also :P I wasnt planning on sharing due to that fact, but I just felt like I had too. Edited August 9, 2014 by jackendra Quote Link to comment Share on other sites More sharing options...
jackendra Posted August 10, 2014 Author Share Posted August 10, 2014 Note: It asks for two things. 'Script'; which is the file which you wrote your script in, and output, which is the file to output code to. Quote Link to comment Share on other sites More sharing options...
Guest spazi Posted August 10, 2014 Share Posted August 10, 2014 Looks cool bro :) Quote Link to comment Share on other sites More sharing options...
jackendra Posted August 10, 2014 Author Share Posted August 10, 2014 Thanks, I am still updating every once and a while to add more functionality. Quote Link to comment Share on other sites More sharing options...
jackendra Posted August 10, 2014 Author Share Posted August 10, 2014 If anyone is actually looking here, I have another update: I wrote a quick interpreter, in a separate script, so you dont have to; Open notepad, start writing your script, save, run converter... all that. Instead you just run the interpreter, and start writing the script in the window and to end your script and save to file start a new line with < and press enter in the terminal/IDLE. If I decide to I will make it one file where -i starts the interpreter, and -s FILE converts a .txt script Quote Link to comment Share on other sites More sharing options...
cooper Posted August 11, 2014 Share Posted August 11, 2014 Why not start the interpreter by default unless a file was provided using a parameter? Quote Link to comment Share on other sites More sharing options...
jackendra Posted August 11, 2014 Author Share Posted August 11, 2014 (edited) Why not start the interpreter by default unless a file was provided using a parameter? Thats a great idea! I just got home from school, I'm updating now. Edit: pic showing the update: Edited August 11, 2014 by jackendra Quote Link to comment Share on other sites More sharing options...
jackendra Posted August 11, 2014 Author Share Posted August 11, 2014 I have to so, there is little flaws if any in this code. But i do have to say it is quite messy looking. Quote Link to comment Share on other sites More sharing options...
caj380 Posted January 2, 2015 Share Posted January 2, 2015 Great work! I have been looking for something like this for some time now. Would you mind sharing your code? I would greatly appreciate it. -caj380 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.