HF RL Explorer

calculators: implement stub

calculators: implement stub: a task in smol-software-harbor (Harbor dataset). rpn eval() in src/rpn.c is still a stub. Implement it as documented in src/rpn.h : evaluate a reverse-Polish expression of non-negative integers with + - / (integer division) separated by spaces, using a stack of at most…

The task

`rpn_eval()` in `src/rpn.c` is still a stub. Implement it as documented in `src/rpn.h`: evaluate a reverse-Polish expression of non-negative integers with `+ - * /` (integer division) separated by spaces, using a stack of at most `RPN_MAX` values. Return `RPN_OK` and the result in `*out`, or `RPN_ERR_SYNTAX` for a…

Part of efederici/smol-software-harbor.