You could try to do a sort of high-level English language like:
Code: Select all
Send 5 to port 21.
Write "Hello" to screen.
Store 5 plus 3 in A.
Each word is a keyword.
e.g.
"Send 5 to port 21."
Send - tell the language we're ending something
5 - the number to end
to - we're sending "to" a location
port - the location is a port.
21 - the number of the port.
"Write "Hello" to screen"
Write - A function in screen
"Hello" - The string to seen to screen
to - we're sending "to" a location
screen - an instance of our screen object.
There could be different sorts of function calls:
"x _ to" functions with parameter
"x _ and _ and _ to" for multiple parameters
"get x from _ and store in _" - get a variable
"get x and y from _ and store in _ and _" - get multiple variable
"tell _ to x" - run a function called x