bfos

From Esolang
Jump to navigation Jump to search
This article is a stub, which means that it is not detailed enough and needs to be expanded. Please help us by adding some more information.

bfos is a hypothetical operating system written entirely in brainfuck. It was conceptualized by User:PythonshellDebugwindow in November 2020.

Details

bfos should keep track of all files, folders, pixels, peripherals, and such in its cells.

Commands

A standard bfos distribution should include at least the following commands:

  • ec: outputs all its arguments (any format is allowed)
  • nf: creates a new file with its name as the first argument (it is undefined behaviour to "create" an already existent file)
  • wf: writes all its arguments (except for the first one) to the file signified by its first argument (it is undefined behaviour if the specified file doesn't exist)
  • rm: removes the file with its name as the first argument (it is undefined behaviour to delete a non-existing file)
  • if: begins an if statement (executes iff its first argument is not empty or zero)
  • fi: ends an if statement

It is undefined behaviour if ifs and fis are unmatched.