This repository contains
- Memetic, a Rust tool that aims at leveraging code usage.
- Meme, a "language" written in Python, as a April Fool's day joke.
A configurable watch
and sed
tool that does live code generation.
A string template language hosted by Python3 runtime. Conventionally, the source code of this language is written in plain text with utf-8 encoding and stored in a file with extension ".meme".
Human beings repeat one another, even themselves from time to time. Emerging from the dark flow of collective intelligence, memes are how we degenerated web inhabitants express our feelings, thoughts and our very existence. Yet, such expression is causing more and more brothers to suffer from language or behavioral disorders (e.g. little-pinky or vim-handicapped). The meme language is therefore introduced to DRY the web environment and encourage diversity across our mental homeland.
To keep the language implementation concise, the grammar of said language is aligned with the syntax described in PEP 498.
Following the creed of DRY, we can use only 6* lines of code to implement said language. You may inspect the source code if you like. Low code, low errors; no code, no error. Think about it.
* As the development goes on, this may no longer be true; yet the creed shall guide us.
The language is based on Python 3, which can be installed directly or via your system package manager. Make sure that you install a version that is superior than or equal to Python 3.6. Make sure that you also install pip, the package manager for Python as well.
Then run
pip install --upgrade meme-lang
and meme-lang will be installed to your device.
Using meme is easy.
# import
from meme import Meme
# your meme template name
meme_name = ".meme"
# the contents to be filled into the meme template
meme_content = {}
# get the str of meme
meme = Meme(meme_name).print(**meme_content)
# output
print(meme)
You may also create various memes and collect them for future use.
This is merely a joke. Don’t take this seriously.