Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bc: remove non-standard '**' operator (#518)
* In yylex(), '^' and '**' are both tokenised as $EXP * Also, '^=' and '**=' are both tokenised as $EXP_EQ * Operators '**' and '**=' are not part of standard bc grammar so remove them [1] * Tested against GNU, OpenBSD and Gavin Howard versions of bc 1. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/bc.html Example input: 2 ^ 8 a = 2 a ^= 8 a
- Loading branch information