Symbol Table · Lexical Analysis · TAC Generation
Raw expression entered by the user. Passed to the Flex lexer as a character stream.
Flex scans the input, matches regex patterns, and produces a stream of typed tokens.
Every identifier is registered. Each gets a unique ID (id1, id2…) and a type.
Recursive-descent / LALR(1) parser checks grammar rules. Builds the parse tree.
Semantic actions in Bison rules emit three-address instructions with temporaries t1, t2…