Compiler/interpreter for Omgrofl.
Well, compile this little beast:
Installation to a folder of your choice is also possible (might require "root" privileges):
make DESTDIR=/usr install
Quite difficult, wasn't it?
Yet to be done...
After the initial compiling of the interpreter you can either run in interactive mode using:
Then simply type away your commands.
Or you can run an already existing source file:
No need for special extensions, a shebang, or anything like that...
Shebangs are supported by the way! Any line matching the pattern #!/.+/omgrofl is ignored from parsing (no spaces allowed there!). So as long as you have installed it under the name "omgrofl" you are ready to go!
Everything is case-insensitive!
Multiple statements per line are allowed. Only a comment has to be followed by a linebreak.
// assignment lool iz 72 loool to /dev/null lol iz lool // comments w00t laughing at teh codez // incrementing/decrementing lmao lool roflmao lool // stack/queue (deque commands) haxor loool l33t loool n00b loool // output rofl lol // sleeping afk lool afk 250 // program termination stfu // multi-statement lines lol iz 79 rofl lol lol iz 75 rofl lol
// conditions wtf lool iz liek loool ... brb wtf lol iz nope uber 100 ... brb // input stfw lol // looping rtfm ... tldr brb 4 lol iz 0 2 10 ... end
These will however get implemented in the near (or far...) future.