The LOLCODE forum

Discussions in support of the LOLCODE.com wiki

You are not logged in.

Announcement

New registrations are disabled. Please see this announcement.

#26 2008-06-18 00:22:19

RawrMage
New member
Registered: 2008-06-18
Posts: 1

Re: lolcode.net - Compiler for the .NET platform

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

 

#27 2008-06-18 16:12:02

Coda
Moderator
Registered: 2007-10-30
Posts: 308

Re: lolcode.net - Compiler for the .NET platform

"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

 

#28 2008-07-05 20:46:49

MaiN
New member
Registered: 2008-07-05
Posts: 5

Re: lolcode.net - Compiler for the .NET platform

Why is this not working:

Code:

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:

Code:

lol.lol(7,16) : error : Unknown variable: "UP"
Failed to compile.

When I try this:

Code:

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:

Code:

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

 

#29 2008-07-09 00:38:38

Coda
Moderator
Registered: 2007-10-30
Posts: 308

Re: lolcode.net - Compiler for the .NET platform

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

 

#30 2008-07-09 02:48:29

MaiN
New member
Registered: 2008-07-05
Posts: 5

Re: lolcode.net - Compiler for the .NET platform

Yeah coda, it was SUM OF x AN y. tongue
I have a thread with a calculator under MEWzings. ;D

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson