Boil Baking Soda it makes you crazy seriously. LOL
Edit: Nah, I'm just half asleep and not thinking straight.(talking just to make sure I'm alive)
Writing an OS in a custom language
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
You could try to do a sort of high-level English language like:
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
Code: Select all
Send 5 to port 21.
Write "Hello" to screen.
Store 5 plus 3 in A.
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
My OS is Perception.