A simple calculator with Bison and Flex.

Posted on

Since writing a compiler is difficult, we need to structure the work. The standard way to do this is to split the compilation into multiple steps with well-defined expectations. Conceptually, these phases operate in series (although in practice they often alternate), each phase (except the first) takes the output of the previous phase as input. […]