katana.units.esoteric.pikalang
— Pikalang¶
Pikalang esoteric decoder
This unit will map the Pikalang operations to their Brainfuck equivalant,
and then pass along the actual execution to the Brainfuck unit’s
evaluate_brainfuck
function.
In the previous framework of Katana, this unit attempted to decode Pikalang in seemingly TWO different variations. One was a literal mapping to Brainfuck code, the other did something different that required much more code (https://github.com/joelsmithjohnson/pikachu-interpreter)
I have not translated that other code to use bytes, and I do not see the need to do so currently, considering how obscure Pikalang is to begin with.
-
class
katana.units.esoteric.pikalang.
Unit
(*args, **kwargs) Bases:
katana.unit.PrintableDataUnit
-
GROUPS
= ['esoteric', 'pikalang'] These are “tags” for a unit. Considering it is a Esoteric unit, “esoteric” is included, as well as the unit name “pikalang”.
-
PRIORITY
= 40 Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. Has a slightly higher priority
-
evaluate
(case: Any) Evaluate the target. Run the target as Pikalang code and give the standard output results to Katana.
Parameters: case – A case returned by enumerate
. For this unit, theenumerate
function is not used.Returns: None. This function should not return any data.
-