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
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>"
Copyright © 2022 Sarthak Shah This Software is Licensed under GPLv2 or later. Check LICENSE for details.