0README hexcalc |-- 0NOTE obvious |-- 0README this file |-- 1st_read.me distribution readme file |-- Makefile makefile |-- Makefile.log log output of make |-- bltins.c source file |-- hctest01.txt input for test |-- hctest02.txt input for test |-- hexcalc.1 man page |-- hexcalc.h source file |-- hexcalc.y source file |-- init.c source file |-- nethead posting |-- symbol.c source file |-- ulpow.c source file |-- ytab.h source file `-- yylex.c source file NAME hexcalc - interactive hexadecimal calculator SYNOPSIS hexcalc DESCRIPTION Hexcalc reads standard input for a sequence of expressions and commands. Expressions are evaluated and the result is output in the default radix on standard output. Commands are executed, producing their defined action. Commands: hex dec oct set the default radix Built-in functions: DEC(expr) output decimal value of expr OCT(expr) output octal value of expr HEX(expr) output hex value of expr Operators (highest to lowest precedence): ( ) grouping ** exponentiation - ~ unary minus, bitwise not * / % multiplication, division, modulus + - addition, subtraction << >> left-shift, right-shift & bitwise and ^ bitwise exclusive-or | bitwise or = assignment AUTHOR Richard Hargrove 25 June 1988 Hexcalc is a simple calculator for interconversion between octal, hex, and decimal bases, and for carrying out standard C operations: Radix switches and std ops can be done with macos utilities dc or bc, but these are broader utils with a non-linear learning curve. Hexcalc is tightly targeted and simple. Another bonus -- hexcalc has a yacc-based interpretator of its grammar, i.e., another example of the use of yacc. John Rupley rupley@u.arizona.edu -or- jar@rupley.com 30 Calle Belleza, Tucson AZ 85716 - (520) 325-4533; fax - (520) 325-4991 Dept. Biochemistry & Molecular Biophysics, Univ. Arizona, Tucson AZ 85721