This post is Part 4 of the
Alphanumeric Calculator program group.
Note: This is Rev. 3 Bison version and requires Rev. 3 Flex version.
Copy the code below into a file named
alphacalc.y in your local build directory for this project, the same directory where
Makefile and
alphacalc.l are located.
I wrote this version using GNU Bison 3.7.6 and gcc 10.3 on a Slackware -current platform, but it should work using any not-too-old Bison with one small change...