Skip to content

Instantly share code, notes, and snippets.

@i-e-b
Created October 19, 2022 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i-e-b/e91e28a61b55ad88aed0e4944a7f1b80 to your computer and use it in GitHub Desktop.
Save i-e-b/e91e28a61b55ad88aed0e4944a7f1b80 to your computer and use it in GitHub Desktop.
A forth-like language with weird semantics

Take a normal forth-like

25 4 * 100 =    // true

Add parenthesis as a re-write rule, and move one symbol from the left to the right

write(2 4 *) becomes 2 4 * write

Do weird stuff that looks like more mainstream languages, but isn't

if (x =(4)) then (do this) else (do that)

becomes

x 4 = if {do this} then {do that} else

(where else is like ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment