Do you need flex/bison for something like this, or is it small enough that you can take some shortcuts?
Although those with machines powerful enough to run CP/M, and having disk drives, could enjoy the access to compilers.
Like the remarkable Turbo Pascal, which crammed a full IDE into 34KB.