Compiler/code generator: Difference between revisions

Content added Content deleted
(See talk page)
Line 3: Line 3:
A code generator translates the output of the syntax analyzer and/or semantic analyzer
A code generator translates the output of the syntax analyzer and/or semantic analyzer
into lower level code, either assembly, object, or virtual.
into lower level code, either assembly, object, or virtual.

===task heading===


Take the output of the Syntax analyzer [[Compiler/syntax_analyzer|task]] - which is a [[Flatten_a_list|flattened]] Abstract Syntax Tree (AST) - and convert it to virtual machine code, that can be run by the
Take the output of the Syntax analyzer [[Compiler/syntax_analyzer|task]] - which is a [[Flatten_a_list|flattened]] Abstract Syntax Tree (AST) - and convert it to virtual machine code, that can be run by the