mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 08:17:35 +02:00
Added doc class
This commit is contained in:
parent
e7b538aa3f
commit
e55b063cf5
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ In addition, developing [Husk Scheme](http://justinethier.github.io/husk-scheme)
|
||||||
|
|
||||||
Cyclone has a similar architecture to other modern compilers:
|
Cyclone has a similar architecture to other modern compilers:
|
||||||
|
|
||||||
<img src="images/compiler.png" alt="flowchart of cyclone compiler">
|
<img class="doc" src="images/compiler.png" alt="flowchart of cyclone compiler">
|
||||||
|
|
||||||
First, an input file containing Scheme code is received on the command line and loaded into an abstract syntax tree (AST) by Cyclone's parser. From there a series of source-to-source transformations are performed on the AST to expand macros, perform optimizations, and make the code easier to compile to C. These intermediate representations (IR) can be printed out in a readable format to aid debugging. The final AST is then output as a `.c` file and the C compiler is invoked to create the final executable or object file.
|
First, an input file containing Scheme code is received on the command line and loaded into an abstract syntax tree (AST) by Cyclone's parser. From there a series of source-to-source transformations are performed on the AST to expand macros, perform optimizations, and make the code easier to compile to C. These intermediate representations (IR) can be printed out in a readable format to aid debugging. The final AST is then output as a `.c` file and the C compiler is invoked to create the final executable or object file.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue