Skip to content

christopherfujino/dhb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dec Hex Bin

A REPL for integer arithmetic, supporting decimal, hexadecimal, and binary.

> 2
2       0x2     0b10
> 0x24 + 1
37      0x25    0b100101        '%'
> (1 << 8) - 1
255     0xFF    0b11111111

Operators

All values are represented internally as a signed long int.

|Operator|Operation| |--|--|--| |+|signed addition| |-|signed subtraction| |*|multiplication| |/|integer division| |<<|left shift| |>>|right shift| |^|exponentiate| |( ... )|grouping (enforce precedence)|

Building

Requires readline, flex, and bison.

About

An interactive environment for bitwise and integer arithmetic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors