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:
if anyone could help with this, it would be appreciated. I am mainly doing this for fun, to show off to my friends.
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.