Discussions in support of the LOLCODE.com wiki
You are not logged in.
Hey, I put this on the issues page too. Can you help me?
When I try to compile the code
HAI
I HAS A INPUT
I HAS A THING ITZ "pie"
VISIBLE "Testing Thing"
GIMMEH INPUT
IZ INPUT LIEK THING?
YARLY
VISIBLE "U said pie"
NOWAI
VISIBLE "U IDIOT"
KTHX
KTHXBYE
I get the following errors:
test.lol(6,1) : error : Unknown variable: "IZ"
test.lol(6,10) : error : Unknown variable: "LIEK"
Failed to compile.
Is it a coding problem, or just me?
Offline
"IZ x LIEK y?" sounds like 1.0 or 1.1 or something; if you're following 1.2 spec, the proper idiom is "BOTH SAEM x AN y, O RLY?"
Except LOLcode.net uses just "SAEM" instead of "BOTH SAEM".
Offline
Why is this not working:
HAI I HAS A NUMB1 ITZ 0 I HAS A NUMB2 ITZ 0 I HAS A RESULT ITZ 0 GIMMEH NUMB1 GIMMEH NUMB2 RESULT R NUMB1 UP NUMB2 VISIBLE NUMB1 " plus " NUMB2 " = " RESULT GIMMEH RESULT KTHXBYE
It gives me an error:
lol.lol(7,16) : error : Unknown variable: "UP" Failed to compile.
When I try this:
HAI I HAS A NUMB1 ITZ 0 I HAS A NUMB2 ITZ 0 I HAS A RESULT ITZ 0 GIMMEH NUMB1 GIMMEH NUMB2 VISIBLE NUMB1 " plus " NUMB2 " = " NUMB1!!NUMB2 GIMMEH RESULT KTHXBYE
It says something weird:
lol.lol(7,42) : error 5: eos expected Failed to compile.
Should I use another compiler than this one or?
Last edited by MaiN (2008-07-05 20:48:06)
Offline
Well, the first thing I see is that, at least according to the 1.2 spec, "x + y" is "SUM OF x AN y" -- though I'm not exactly sure how LOLCODE.NET interpreter handles it. I'm also not sure what "NUMB1!!NUMB2" is supposed to be but it doesn't resemble anything in the 1.2 spec.
Offline
Yeah coda, it was SUM OF x AN y. ![]()
I have a thread with a calculator under MEWzings. ;D
Offline