a terrible forth-like language for making memes https://szy.io/memeforth
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
mark 1aa6473101 Merge branch 'feature/coolkids' of mdszy/memeforth into master il y a 8 mois
dist rebuild dist il y a 10 mois
test add test for \n il y a 8 mois
.gitignore ignore .vscode il y a 11 mois
DICTIONARY.md add and document \n command il y a 8 mois
LICENSE Add LICENSE il y a 11 mois
README.md syntax fix il y a 9 mois
REFERENCE.md aight i think that's all the docs il y a 10 mois
dictionary.js add and document \n command il y a 8 mois
index.html Added Rollup il y a 11 mois
index.js LOOPY LOOP il y a 10 mois
memeforth.js implement reworked variable definition behavior il y a 10 mois
package-lock.json add mocha and expect.js il y a 10 mois
package.json update urls il y a 9 mois
rollup.config.js rebuild dist.js il y a 10 mois
stack.js add stack documentation il y a 10 mois


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)