Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

BFI4Pascal

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

BFI4Pascal

BFI4P is a simple brain fuck interpreter for freepascal.

Usage

You can extract src folder to your project main folder or simply just install lpk package file in Lazarus and then use BFI unit.

pascal
program Caesar_Cipher;

uses
  BFI;

begin

  // Caesar cipher encoder by 3 right shifts 
  WriteLn(Interpret(',[+++.>,]', 'Hello'));
  
end.

Defines

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.

Note

  • There is no need to Define Mode16 in GUI Applications.

License

  • This "Software" is Licensed Under MIT No Attribution License (MIT-0).