a terrible forth-like language for making memes https://szy.io/memeforth
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
mark 1aa6473101 Merge branch 'feature/coolkids' of mdszy/memeforth into master pirms 1 gada
dist rebuild dist pirms 1 gada
test add test for \n pirms 1 gada
.gitignore ignore .vscode pirms 1 gada
DICTIONARY.md add and document \n command pirms 1 gada
LICENSE Add LICENSE pirms 1 gada
README.md syntax fix pirms 1 gada
REFERENCE.md aight i think that's all the docs pirms 1 gada
dictionary.js add and document \n command pirms 1 gada
index.html Added Rollup pirms 1 gada
index.js LOOPY LOOP pirms 1 gada
memeforth.js implement reworked variable definition behavior pirms 1 gada
package-lock.json add mocha and expect.js pirms 1 gada
package.json update urls pirms 1 gada
rollup.config.js rebuild dist.js pirms 1 gada
stack.js add stack documentation pirms 1 gada


Liberapay Badge


this has gone too far

wtf is this?

this is a FORTH variant, implemented using javascript, that can be used to process text and describe text-based memes

for instance


results in the text:

Just another hard day's work at the 'DNS over yeet? I sure hope it does!' factory

being at the top of the stack

check out DICTIONARY.md for the current language documentation.

wtf isn't this?

memeforth is not:

  • a standards-compliant FORTH variant, it has non-standard features such as:
    • strings are valid outside of a word definition context and are pushed to the stack when a literal string is encountered
    • unknown words are treated as strings (bare-words)
    • IF/DO/other control statements are valid outside of a word defintion
  • meant to be used for anything serious
  • free of probably serious bugs
  • webscale
  • thread-safe, memory safe, safe from undefined behavior, safe from the apocalypse, radiation hardened or rated for use in explosive environments
  • anything good


So far, the language features are:

  • Pushing strings, integers and boolean values onto the stack.
  • Memory storing/fetching.
  • Stack manipulation.
  • Integer math.
  • Comparison/boolean logic operations.
  • String manipulation such as SLICE/JOIN/SPLIT
  • IF/ELSE statements.
  • DO loops.
  • Output printing.
  • Tons of text memes.
  • Comments. ( like this )

projects using memeforth


this project is maintained by @mdszy (initial idea and most implementation) and @bclindner (Mastodon bot version, lots of JavaScript advice)