Questions tagged [lolcode]

LOLCODE is an esoteric programing language designed to mimic many internet memes.

LOLCODE is an esoteric programing language designed to mimic many Internet memes. It was invented by Adam Lindsay of Lancaster University in 2007 and first implemented as a PHP parser by Jeff Jones.

The latest stable LOLCODE specification is version 2. Multiple compilers and interpreters implement it, along with candidate feature improvements in discussion for version 3. As such, LOLCODE is available as an embedded extension on multiple platforms including the JVM and the CLR, as well as standalone interpreters and compilers for both language and VM backends.

17 questions
36
votes
2 answers

Which LOLCODE interpreter to use?

This is similar to this question. What I am asking though, is which LOLCODE interpreter should I pick based on these criteria: 1) Works well and is up-to-date 2) Ease of install - I've looked before and couldn't find one which I found easy to…
mnuzzo
  • 3,529
  • 4
  • 26
  • 29
26
votes
1 answer

What good is the NERFIN loop operation in LOLCODE?

What the spec says on the subject: Iteration loops have the form: IM IN YR
JB.
  • 40,344
  • 12
  • 79
  • 106
22
votes
1 answer

Is there a lolcode compiler for x86 or x86_64?

On the lolcode website I saw many references to various lolcode interpreters. But is there a lolcode compiler for the x86 or x86_64 architecture, that compiles directly to native machine code? I have looked at several interpreter implementations,…
DejanLekic
  • 18,787
  • 4
  • 46
  • 77
19
votes
5 answers

What is the "best" Open Source lolcode interpreter?

I'm interested in studying how an interpreter works, and LOLCODE makes me laugh, so: What's the best OpenSource LOLCODE interpeter? Bonus points for providing a decent REPL.
Hank Gay
  • 70,339
  • 36
  • 160
  • 222
14
votes
1 answer

LOLCODE String Parsing

Suppose I have a string that takes the form "## ##" in stdin that I want to read in, e.g. "15 16". That's simple enough: I HAS A STRINGY GIMMEH STRINGY That grabs the whole line from stdin and stores it into the string—er, excuse me, YARN—called…
dpwilson
  • 997
  • 9
  • 19
4
votes
1 answer

Read command line arguments in LOLCODE

I have two files like: program.lol text.txt Then, I would like to run the LOLCODE code passing the name of the text file as argument with some syntax like: ./interpreter program.lol text.txt I would like to print the contents of the text file,…
4
votes
1 answer

Convert escape sequences from user input into their real representation

I'm trying to write an interpreter for LOLCODE that reads escaped strings from a file in the form: VISIBLE "HAI \" WORLD!" For which I wish to show an output of: HAI " WORLD! I have tried to dynamically generate a format string for printf in order…
peteykun
  • 716
  • 9
  • 21
3
votes
0 answers

Is it possible to implement an integer-to-anytype collection in a language without a builtin collection type?

I started wondering about this question when I started to dabble with LOLCODE. LOLCODE has 5 data types, YARN (string), TROOF (Boolean), NUMBR (integer), NUMBAR (float), and NOOB (untyped). However, no collection types are provided with version 1.2…
3
votes
1 answer

Invalid keyword at beginning of an expression(lolcode)

I just started using LOLCODE. I tried making a program that tests if a input is a NUMBR but I get the error Invalid keyword at beginning of an expression on line 13 (IM OUTTA YR LOOP). Hese is my code. Please help. Thanks. I HAS A VARIABLE I HAS A…
user9188797
3
votes
1 answer

Can I read command line Parameters passed to LOLCODE

I'm using https://code.google.com/p/lolcode-dot-net/ to compile my LOLCODE. Once I have the exe, I'd like to pass command line parameters to it. Is there some way of getting these params to the LoLcode (other than having a separate .net solution…
Mikey Mouse
  • 2,968
  • 2
  • 26
  • 44
3
votes
1 answer

How to detect blocks of text

Is it possible to get block of text inbetween two markers? I am trying to write my version of LOLCODE and i want to make if statement - then i ran into this problem. Basic thing is, that i want to do this: IS #DIR = 5 YUP -if statement…
themorfeus
  • 277
  • 1
  • 3
  • 17
1
vote
1 answer

Lolcode: variable does not exist: STDIO

I got the following problem while trying to run a LOLCODE program: variable does not exist: STDIO I think it's something with me running on Windows instead of any linux. I want to use LOLCODE for a school assignment, as in my opinion just using…
Aaron
  • 145
  • 2
  • 7
1
vote
1 answer

Swap two variables in Lolcode

What command do I need to swap two variables's values in one line using Lolcode? I've tried looking at Specification, but failed to find any info about it.
Olga Zhukova
  • 369
  • 1
  • 5
  • 13
1
vote
0 answers

Javascript : Regex for variable name does not work as it meant

We're making a LolCode Interpreter for our school project. We're having trouble in coding the lexical analyzer of our interpreter. // I HAS A if(/(I\sHAS\sA)\s[a-zA-Z_$][0-9a-zA-Z_$]*$/i.test(entry)){ …
Xeonel
  • 21
  • 2
0
votes
0 answers

Objective LOLCODE interpreter with STDLIB

I want to code a pi approximation that uses random numbers in LOLCODE. Therefore I need the STDLIB to import a random number generator via: CAN HAZ STDLIB? The only interpreter repository for LOLCODE I've found was this. It's not up to date and the…
Marian Klösler
  • 620
  • 8
  • 22
1
2