Skip to content

An accumulator based programming language, inspired heavily by deadfish

License

Notifications You must be signed in to change notification settings

Hemanth3303/Accumulator-Based-Programming-Language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accumulator-Based-Programming-Language(accbpl)

  • This is heavily based on the esolang Deadfish.
  • In fact, the any deadfish program that doesn't relay on accumulator reset(at -1 and 256) should work fine with accbpl.
  • I just added few extra instructions.

Specification

  • At the beginning of a program, accumulator is initialized to zero.
  • Accumulator is a signed 32-bit integer.(int32_t)
  • Supports the following instructions: i, d, s, r, o, c, g.
  • Any character that is not part of the above instruction set is ignored.
  • Newline and whitespaces are also ignored.

Instructions

Instruction Effect on accumulator
i increment
d decrement
s square
r square root, rounded to int
o output as int(32 bit)
c output as char(8 bit)
g get single int(32 bit) as input and overwrite
  • Of these, i, d, s, and o are from deadfish.

About

An accumulator based programming language, inspired heavily by deadfish

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages