Skip to content

edison1119/Numerical-BrainFuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Numerical-BrainFuck

Brainfuck that work with both number and char

There are currently 14 operator, 8 extended BrainFuck operator, 6 extra.

support 69420 cells, support large int, number I/O, unicode char I/O, negative values, float, bracket autocomplete.

Main idea of this language: Instead of interacting/changing the pointed cell, it takes next cell's value and use it to caculate.

caculation operator use next cell for caculation, Default will be used if next cell is 0. Some of the operator are altered from normal BF and works differently:

  • +,-: Add/subtract cellp(pointer) by cellp + 1 (default 1)
  • [,],>,<: Remains same as BF.
  • .: output absolute of cellp as unicode(chr(cell[p]))
  • ,: read 1 char i and set cellp to i's unicode value (default 0)

Extra operator:

  • :: output cellp as an int
  • ;: takes input until \n and treat it as whole int (default 0)
  • \: divide cellp value by cellp+1 (default 2)
  • *: multiply cellp value by cellp+1 (default 2)
  • %: module cellp value by cellp+1 (default 1)
  • _: floor cellp
  • (: if cellp is zero, jump to next ],) (],) don't jump back to ()
  • ): identical to ]

About

Brainfuck that work with both number and char

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages