Hai world don't work on my pc

347 views
Skip to first unread message

nanaki

unread,
Mar 10, 2012, 7:48:34 AM3/10/12
to lci-general
Hello Justin Meza,
(I'm french and I don't speak english very well. So, sorry if some
sentences seems to be bad)

I tried to install many LOLCODE interpreters, and lci it's the only
one who worked.
Firstly I've installed lci v0.9.2. Then, I needed to use BUKKITS: I
finally install lci v0.10.1
(without remove lci v0.9.2 because I don't know how to remove it)

Now, simples programs like "hai world" don't work...

For example, when I try to interpret:

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE

lci answer me:
test.lol:3: expected end of statement at: VISIBLE

I don't know how to do. Before installing v0.10.1, "Hai World" worked.
Do you think the problem comes from the coexistence of the two
versions?
Can you help me to completely uninstall LCI? ( I will reinstall only
the latest version)

Thank you so much for your future response :)

nanaki

Justin Meza

unread,
Mar 10, 2012, 10:34:48 AM3/10/12
to lci-g...@googlegroups.com
Hey nanaki,

I think that you just need to specify a version number after "HAI".  For example, on v0.10.1, I got the same error as you when I ran your code, but I got the correct output when I ran:

HAI 1.3
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE

Regarding uninstalling, if you specified a path to install.py, then there will just be a binary located at the path which you can delete.  Otherwise, the default install directory is the current directory, so you could delete the binary there.

Let me know if this helps,
Justin

Sébastien Nicolas

unread,
Mar 10, 2012, 5:35:24 PM3/10/12
to lci-g...@googlegroups.com
Hey Justin,
you were right for the version number! Thank you very much :)
Since you answer me, I tried to manipulate
array with "bukkit", and I have'nt managed to access the fields of array.

Here is my program:

HAI 1.3
CAN HAS STDIO?
I HAS A array ITZ A BUKKIT
array HAS A field1 ITZ "lol"
array HAS A field2 ITZ 156
I HAS A v1 ITZ array!!field1
VISIBLE "tab[0]" v1
VISIBLE "tab[1]" array!!field2
KTHXBYE

lci answers me:
test.lol:6: expected end of statement at: !

I think <object>!!<field> don't work...
Do you know how can I access the fields of array, please?

Thank you too for uninstalling instructions.
I don't need to uninstall for the moment, but it could be useful for the future! ^^


2012/3/10 Justin Meza <justi...@gmail.com>

Justin Meza

unread,
Mar 10, 2012, 6:08:56 PM3/10/12
to lci-g...@googlegroups.com
Ah yes, BUKKITs follow the syntax and semantics here:
http://lolcode.com/proposals/1.3/bukkit2 .

So, accessing a BUKKIT element is done using 'Z, as in,

I HAS A v1 ITZ array 'Z field1

Hope this helps!

- Justin

2012/3/10 Sébastien Nicolas <sebastien...@gmail.com>:

Sébastien Nicolas

unread,
Mar 11, 2012, 8:28:04 AM3/11/12
to lci-g...@googlegroups.com
Thank you Justin, I can do my project now :)

2012/3/11 Justin Meza <justi...@gmail.com>

Sébastien Nicolas

unread,
Mar 11, 2012, 11:19:43 AM3/11/12
to lci-g...@googlegroups.com
Hey Justin,
I've seen that: http://lolcode.com/contributions/structures?s[]=structure

And it doesn't work. Is it just a suggestion for le language?
Is there a way to create structures?

Justin Meza

unread,
Mar 11, 2012, 11:24:46 AM3/11/12
to lci-g...@googlegroups.com
Yeah, those are some ideas for the language. lci implements
everything in the 1.2 spec (http://lolcode.com/specs/1.2) and most of
what is in the BUKKIT spec (http://lolcode.com/proposals/1.3/bukkit2).

I think that you can create structures using BUKKITs, because they can
store functions in addition to variables. The BUKKIT spec has more
details on this.

- Justin

2012/3/11 Sébastien Nicolas <sebastien...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages