376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 07 January 2015 - 07:30 PM
I know this may seem like an Ask a Pro topic from the title, but it isn't.I need you to think of phrases I can add to it so it converts over.
I already have a lot, but I can't think of more
syntax = {
["is equal to"] = "==",
["is the same as"] = "==",
["represents"] = "=",
["repeatedly call"] = "while true do",
["stop"] = "break",
["if the value of"] = "if",
["or else"] = "else",
["stop loop"] = "break",
["start loop"] = "while true do",
["or if"] = "elseif",
["new command"] = "function",
["create command"] = "function",
["new cmd"] = "function",
["create cmd"] = "function",
["new function"] = "function",
["new fnctn"] = "function",
["halt"] = "end",
["wait"] = "sleep",
["not equal to"] = "~=",
}
So can you help me?
EDIT: added some more
Edited on 08 January 2015 - 01:18 AM
571 posts
Location
Some Fish Bowl in Ohio.
Posted 07 January 2015 - 07:59 PM
376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 07 January 2015 - 08:15 PM
1426 posts
Location
Does anyone put something serious here?
Posted 07 January 2015 - 09:06 PM
Looks a bit like
HyperTalk (or even better:
Inform7 or
SPL). You might get some ideas from the syntax from there.
Edited on 07 January 2015 - 08:18 PM
2151 posts
Location
Auckland, New Zealand
Posted 07 January 2015 - 10:04 PM
Yea, it also resembles AppleScript, which I'm personally not a fan of really.
With 'represents', maybe that's better as just equals?
177 posts
Location
Spain
Posted 07 January 2015 - 10:06 PM
["say"] = "print"
571 posts
Location
Some Fish Bowl in Ohio.
Posted 07 January 2015 - 10:26 PM
["put"] = "print"
["echo"] = "print"
541 posts
Location
Melbourne, Australia
Posted 07 January 2015 - 11:37 PM
["not equal to"] = "~="
188 posts
Location
Adelaide, Australia
Posted 07 January 2015 - 11:45 PM
I understand the usefulness of symbols to English but I think that while true do makes sense and is also quicker then 'repeatedly call'
other then that, this could help beginners.
3057 posts
Location
United States of America
Posted 07 January 2015 - 11:48 PM
"forever do" = while true do
188 posts
Location
Adelaide, Australia
Posted 07 January 2015 - 11:57 PM
"forever do" = while true do
Not bad :P/>
376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 08 January 2015 - 02:17 AM
I understand the usefulness of symbols to English but I think that while true do makes sense and is also quicker then 'repeatedly call'
other then that, this could help beginners.
I decided to go with "start loop"
188 posts
Location
Adelaide, Australia
Posted 08 January 2015 - 07:08 AM
-snip-
I decided to go with "start loop"
Okay that's good, looking forward to seeing this compete or even in a beta.
571 posts
Location
Some Fish Bowl in Ohio.
Posted 08 January 2015 - 06:15 PM
["repeat"] = "again"
["give"] = "return"
["none"] = "nil"
1029 posts
Location
Missouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension
Posted 10 January 2015 - 11:10 PM
["not"] = "is not"
["if"] = "if it"
(joke) ["Proper variable"] = "local"
28 posts
Location
Polen
Posted 11 January 2015 - 01:15 AM
<joke>
["please"] = "if math.random(0,100) < 50 then … end"
</joke>
["walk [up|down|back]"] = "turtle.whatever"
["turn <left|right>"] = "turtle.turn…"
["dig"] = "turtle.dig"
etc. etc.
It will be an intresting thing to see once completed!
779 posts
Location
Kerbin
Posted 03 February 2015 - 05:22 PM
Wait x seconds - sleep(x)
wait for something - os.pullEvent
do x times - for i=1,x do
open file/close file/read file - fs.open things
joke:
Flood in rednet:
for i=1,10 do
rednet.broadcast("Hi!")
end
113 posts
Location
This page
Posted 10 February 2015 - 08:29 PM
["is"]="=="
["is not"]="~="
["is more than"]=">"
["is bigger than"]=">"
["is less than"]="<"
["is smaller than"]="<"
The only real problem with small words like 'is' is that you need to make sure it is not followed by another keyword like 'less than', but you might already have that figured out how to fix that :D/>
["ask 'message'"]="write('message') read()"
["they say 'x'"]="read()=='x'"
["said"]="read()"
could be used such as:
if they say "hello" then
or
if "hello" is said then
which would both be the same as
if read()=="hello" then
["open file"]="fs.open"
["close file 'x'"]="x.close()"
["save file 'x'"]="x.flush()"
["the color 'x'"]="colors.'x'"
It would also be nice to have access to the color variables like this
if var is the color red then
Edited on 10 February 2015 - 10:46 PM