Skip to content

cel7t/R6RS-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

R6RS Infix Calculator

Description

An R6RS Scheme Infix Arithmetic Calculator. Supports +, -, **, *, %, ( and ), and works with floating point numbers. To set the output as Decimal, uncomment the necessary line in the file. Exercise caution when using Decimal output, as Scheme has infinite precision. It should work with all R6RS Scheme Implementations, and has been tested with Chez and Guile Scheme

Usage

For Chez, append at the top of the file:

#!/usr/bin/chez --script

For Guile, append at the top of the file:

#!/usr/bin/guile -s
!#

For other R6RS compliant scheme implementations, check the ‘script’ header for your implementation and add it to the top of this file. To evaluate an expression, do:

./infix.scm "<expression>"

License

Copyright © 2022 Sarthak Shah This Software is Licensed under GPLv2 or later. Check LICENSE for details.

About

An R6RS Scheme Infix Arithmetic Calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages