StonedHesus / unbound

This repository contains the second year project I had to do as a student in Computer Science, at the University of Paris( now known as the Université Paris Cité), enrolled in the LC4 module, a module which deals with low level programming and the C language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unbounded-int

This repository contains the second year project I had to do as a student in Computer Science, at the University of Paris( now known as the Université Paris Cité), enrolled in the LC4 module, a module which deals with low level programming and the C language.

ListForks ListForks ListForks ListForks

Thus far the main logic for the unbounded_int data type can be found inside the unbounded-int.c file, in addition to that there also exists a test file which contains tests which are bound to ensure the proper functionality of the data type, and, in case any extra functionality will be added in the future to allow the developer to easily determine whether the changes will permit backward compatibility with previous versions of the software.

In order to run the test file, type or copy into your terminal the following the command( make sure that the gcc compiler is installed on your system and that the shell is able to access it, and also that you poise yourself in the directory containing the scripts):

foo@example:~$ make

foo@example:~$ ./test

! Important: We recommend using your terminal in fullscreen mode when running the test program, if by any chance your resolution does not allow the rendering of a visible output do redirect your attention to the file test-results.txt in which you will be able to find the same results only in a format which is bound to scale more nicely with your resolution to the magic of text-editors.

In order to experience what the language has to offer you have to run the calc_unbounded_int executable which will then wait for you to input an input file and/or and output one, if one or all of the above are missing the program will revert to the standard input and out(stdin, stdout respectively).

This will open an interactive shell session, similar to the Python one.
foo@example:~$ ./calc_unbound_int

This will read from the file marked by the option -i and will output the results in the file marked by the option -o.
foo@example:~$ ./calc_unbound_int -i test.ub -o test.out

The output file is optional, and if omitted the program will output the result on the terminal.
foo@example:~$ ./calc_unbound_int -i test.ub

About

This repository contains the second year project I had to do as a student in Computer Science, at the University of Paris( now known as the Université Paris Cité), enrolled in the LC4 module, a module which deals with low level programming and the C language.

License:MIT License


Languages

Language:C 98.3%Language:Makefile 1.2%Language:Zig 0.5%