Infinity Calculator implementation for Assignment 2 in Computer Organization.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
Cameron Weinfurt 0298905f55 Finalizing for turning in. 1 yıl önce
.gitignore Finalizing for turning in. 1 yıl önce
Makefile Finalizing for turning in. 1 yıl önce
README.txt Finalizing for turning in. 1 yıl önce
eval.c Finalizing for turning in. 1 yıl önce
eval.h Implemented exponentiation. 1 yıl önce
expr.c Added a test for parsing and expression creation 1 yıl önce
expr.h Added a test for parsing and expression creation 1 yıl önce
infint.c Evaluation of expressions implemented. Major problem with CONCAT discovered. 1 yıl önce
infint.h Evaluation of expressions implemented. Major problem with CONCAT discovered. 1 yıl önce
infint_four_func.c MAYA obtained! 1 yıl önce
infint_test_ff.c Infint multiplication implemented. 1 yıl önce
infint_util.c MAYA obtained! 1 yıl önce
main.c Finalizing for turning in. 1 yıl önce
parse.c Finalizing for turning in. 1 yıl önce
parse.h Added a test for parsing and expression creation 1 yıl önce
token.c Parsing of the expression tree is complete. The program can now be given an expression of any length and then construct an appropriate tree that preserves order of operations. Hexidecimal tokenizing appears to be broken. 2 yıl önce
token.h Dealt with warnings. 1 yıl önce

README.txt

Infinity Calculator Implementation by Cameron Weinfurt

Intro:
This calculator implementation supports the required addition, subtraction and
multiplication, but also exponentiation. The calculator will recognize
division, but will ignore the operation. Each line is evaluated as a single
math expression. The executable is called "infcalc".

Building:
The provided makefile is set up to build the infinity calculator using gcc
using -O2 optimizations and cleaning up object files made as an
intermediate. Running make with no rule specified will build the calculator.
To perform a build that runs the unit tests and displays debug information,
run "make dev". As part of the build process for development builds, the
calculator is run within valgrind to ensure that the there are no memory leaks
within the calculator.

Additional testing:
The provided "in.txt" file contains a collection of test cases whose output
is in "out.txt". Run the following command to run the calculator on each test:

$ cat in.txt | /.infcalc