I would like to make a program where it scans a program with the source code and checks for certain words and does something with them. Such as if I needed to check if a word is positive or negative then it would need to (most likely) use a string, but if one word is short and it is negative and another word is long and contains the short negative word then it would count it as both positive and negative. I would also need something to use as a stack with names that are put at the very beginning of a program. So that when the program has a "[enter romeo]" it starts using romeo to edit numbers with. here is some source code that prints "Hel" as in "Hello World"


Code:
The Infamous Hello World Program.

Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.


                    Act I: Hamlet's insults and flattery.

                    Scene I: The insulting of Romeo.

[Enter Hamlet and Romeo]

Hamlet:
 You lying stupid fatherless big smelly half-witted coward!
 You are as stupid as the difference between a handsome rich brave
 hero and thyself! Speak your mind!

 You are as brave as the sum of your fat little stuffed misused dusty
 old rotten codpiece and a beautiful fair warm peaceful sunny summer's
 day. You are as healthy as the difference between the sum of the
 sweetest reddest rose and my father and yourself! Speak your mind!

 You are as cowardly as the sum of yourself and the difference
 between a big mighty proud kingdom and a horse. Speak your mind.

 Speak your mind!

[Exit Romeo]


if anyone could help with this, it would be appreciated. I am mainly doing this for fun, to show off to my friends.
An interpreter for this could be very easily written in something like Python or Perl; that would be my best recommendation. If you wanted something web-based, it would be equally easy to make PHP parse one of these and spit out the output.
and if I really wanted this for my calculator? Oh and slightly off topic, but is there a way that on-calc you would be able to execute keypresses from a file, like in emulators how you can record then use the key presses?
_player1537 wrote:
and if I really wanted this for my calculator? Oh and slightly off topic, but is there a way that on-calc you would be able to execute keypresses from a file, like in emulators how you can record then use the key presses?
There's unfortunately no easy way to replay keypresses, unless you could figure out how to fake port events (or loop one port into another, so you could output on one port to input on another). Regarding the first part, the calculator is not well-suited to processing large chunks of texting, especially for the fact that it requires a large amount of storage.
ok, one more question about your document program (docde6) is there an interpreter to change it to a string on-calc so that I could change something written in the easy to use program to a not-so-easy string? Just wondering.
Well don't know whether it is a right place to ask for but came to know that along with the regular languages like python, basic etc can i use Linux, Apache, and the PHP interpreter for translating such articles?
JadenSmith wrote:
Well don't know whether it is a right place to ask for but came to know that along with the regular languages like python, basic etc can i use Linux, Apache, and the PHP interpreter for translating such articles?


Contrary to the signs, this isn't spam. We had a wonderful chat in SAX after I deleted his post the first time Smile

Again, I apologize.
First off... Wow, I was newbish in '09 Razz (Like I'm not, still) I'm kinda surprised I knew what a stack was back then. And, now that I remember this post, I think I might actually try to write a program which does this. Especially when I get bored and just want a simple string-parsing project.

As for Jaden's question, I'm going to go with "yes." Not quite sure what you're wanting to ask. Linux, Apache, and PHP can be used to translate stuff from one format to another. I guess you're wanting to convert strings into DocDE6 files?

And, Comic, it's okay. Thanks for clarifying that he's not a bot Smile

Edit: Also, in case someone thinks about it, leave the title how it is. It emphasizes my newbiness.
_player1537 wrote:
First off... Wow, I was newbish in '09 Razz (Like I'm not, still)


The smilies totally prove that, yes, you are still a "newb."
comicIDIOT wrote:
_player1537 wrote:
First off... Wow, I was newbish in '09 Razz (Like I'm not, still)


The smilies totally prove that, yes, you are still a "newb."

Umm... Yes. I really am.

For everyone else, I edited my other post to remove about... 4 or 5 smilies I had thrown in there. It's been a while since I've been on here.
_player1537 wrote:


As for Jaden's question, I'm going to go with "yes." Not quite sure what you're wanting to ask. Linux, Apache, and PHP can be used to translate stuff from one format to another. I guess you're wanting to convert strings into DocDE6 files?



_player1537 thanks for the reply
Yes was asking for converting strings into DocDE6 files while translating as I never used Linux and Apache before so far so was having doubt about it, i guess i should go with PHP only. Still anyhow you came to know about Linux and Apache's technique please let me know....... Smile
This is clearly spam. The signature for "language interpretation services" is a dead giveaway. Deleting user.
He posted in SAX :/ he seems pretty legit. At least you could have deleted the signature.
comicIDIOT wrote:
He posted in SAX :/ he seems pretty legit. At least you could have deleted the signature.
I did delete the signature; I also suspended the account. Smile
Afaik, he was not a spammer. But ok, you are the site admin.
Clever new idea for spamusers: pretend to be a real user and hide some ads here and there?

(sorry for driving this further offtopic, but I guess the topic is back to being dead again anyways)
aeTIos wrote:
Afaik, he was not a spammer. But ok, you are the site admin.
I made a judgment call about whether the user was a spammer or not, and I'm confident about my call. All of our spammers that get past the Captcha are human, if only poorly-paid overseas workers who know enough English to get around fora like this one, and reading the posts, cross-checking other posts with similar contents on other sites, and following the links in the user's profile and signature, I'm confident that it was at least partially a spamming attempt. As comicIDIOT has noted in the past, because of the way I deactivate accounts, the user could easily reactivate themselves if they wish to dispute my decision.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement