Skip to content

Instantly share code, notes, and snippets.

@HackerFoo
Created October 15, 2021 00:11
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 HackerFoo/08c13d566026bdc4b5def58729b905c2 to your computer and use it in GitHub Desktop.
Save HackerFoo/08c13d566026bdc4b5def58729b905c2 to your computer and use it in GitHub Desktop.
,------------------,
,--------' Popr Interpreter '--------,
| Copyright 2012-2020 Dustin DeWeese |
'------------------------------------'
type :help for help - https://popr.dev
Load lib.ppr (lib, num, list, stack, control, logic, algorithm, io)
Load tests.ppr (tests)
Importing all modules (algorithm, control, io, lib, list, logic, num, stack, tests)
: :bc add: +
___ eval.add (2 -> 1) (hash: c96a9) ___
[1] var :: ?i x1 pgjhj
[2] var :: ?i x1 mrqmm
[3] __primitive.add 2 1 :: i x1 oiowa
[4] return [3] kwokg
: :cc add
int eval_add(int int2, int int1);
int eval_add(int int2, int int1)
{
entry: {
int int3 = __primitive_add_iii(int2, int1);
return int3;
}
} // end eval_add
:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment