BFI4P is a simple brain f*ck interpreter for Pascal,that can be used in both Objpas(FPC) and Delphi.
You can extract src folder to your project main folder or simply just install lpk package file in Lazarus and then use BFI unit.
program Caesar_Cipher;
uses
BFI;
begin
// Caesar cipher encoder by 3 right shifts
WriteLn(Interpret(',[+++.>,]', 'Hello'));
end.
Define | Usage |
---|---|
Mode16 | Using Sequence of 1-4 bytes for each Character Instead of Using 8 bits Characters(ASCII -> UTF8). |
Optimization | By Passing some Branches to Speedup the Interpreter around 10-25 Percents.(Different in 8/16 bits Modes) |
Debug | For Debugging. |
- There is no need to Define Mode16 in GUI Applications.
- This "Software" is Licensed Under
MIT No Attribution License (MIT-0)
.