My third attempt at a CLI calculator. Supports functions, variables, implicit multiplication and a lot of customization options. Under 1000 LoC. Can be built with or without libreadline.
Go to file
r4 dd918e6208 set() function + userdata storage + Expr instance access for functions
- functions can take string arguments (i.e. variable names that may be
  undefined)

- set(<varname>, <value>) sets a variable to a user-defined value

- any userdata can be stored via expr_set_userdata() and retrieved via
  expr_get_userdata(); also accessible to functions

- functions gain access to the expr instance and consequently all
  of its variables including userdata
2022-09-12 20:16:53 +02:00
Makefile init 2022-08-22 23:43:21 -04:00
README.md Initial commit 2022-08-23 05:41:53 +02:00
expr.c set() function + userdata storage + Expr instance access for functions 2022-09-12 20:16:53 +02:00
expr.h set() function + userdata storage + Expr instance access for functions 2022-09-12 20:16:53 +02:00
expr_config.h set() function + userdata storage + Expr instance access for functions 2022-09-12 20:16:53 +02:00
main.c init 2022-08-22 23:43:21 -04:00

README.md

qc

My third attempt at a CLI calculator. Supports functions, variables, implicit multiplication and a lot of customization options. Under 1000 LoC. Can be built with or without libreadline.