Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mneudert/omgrofl-compiler
compiler/interpreter for omgrofl
https://github.com/mneudert/omgrofl-compiler
Last synced: 2 months ago
JSON representation
compiler/interpreter for omgrofl
- Host: GitHub
- URL: https://github.com/mneudert/omgrofl-compiler
- Owner: mneudert
- Created: 2013-05-06T22:38:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-18T22:41:44.000Z (almost 11 years ago)
- Last Synced: 2024-07-31T20:45:10.299Z (5 months ago)
- Language: C++
- Size: 256 KB
- Stars: 6
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - mneudert/omgrofl-compiler - compiler/interpreter for omgrofl (C++)
README
# Omgrofl Compiler
Compiler/interpreter for [Omgrofl](http://esolangs.org/wiki/Omgrofl).
## Preparation
Well, compile this little beast:
make
Installation to a folder of your choice is also possible
(might require "root" privileges):make DESTDIR=/usr install
Quite difficult, wasn't it?
## Compiling Omgrofl
Yet to be done...
## Interpreting Omgrofl
After the initial compiling of the interpreter you can either
run in interactive mode using:./omgrofl
Then simply type away your commands.
Or you can run an already existing source file:
./omgrofl sourcefile.omgrofl
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!## Language Support
### Supported statements
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### Unsupported statements
// conditions
wtf lool iz liek loool
...
brbwtf lol iz nope uber 100
...
brb// input
stfw lol// looping
rtfm
...
tldr
brb4 lol iz 0 2 10
...
endThese will however get implemented in the near (or far...) future.
## Examples
See [omgrofl-examples](https://github.com/mneudert/omgrofl-examples).