Skip to content

Commit 90fca3a

Browse files
committed
Add illustrations
1 parent 81da6f0 commit 90fca3a

5 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎resources/doc/analysis.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Some analyses stop earlier (e.g. only local resolution is needed to know the dec
5151

5252
Not everything is part of this pipeline: the [FAST utilities](#fast-utilities) are helpers available on the freshly imported model, without needing any tooling or resolution.
5353

54+
![An example of a FAST Python model](model.png)
55+
5456
## FAST utilities
5557

5658
Some properties and helpers got added to FAST to get more information out of the AST. Here some of them will be described.
@@ -99,6 +101,8 @@ Once this is done, you can ask any node that can represent a variable for its `#
99101

100102
The local declaration knows all the usages of the entity in the model. We can get them by asking `#localUses`.
101103

104+
![An example of the local resolution of a module](lr.png)
105+
102106
### Shadowing
103107

104108
In Python anything named can shadow anything named. For example we can declare a global variable then shadow it with an import, then shadow it with a function...
@@ -173,6 +177,8 @@ On the model:
173177

174178
It is possible to get a control flow graph of a behavioral entities in FASTPython.
175179

180+
![An example of a control flow graph](cfg.png)
181+
176182
I can be used like this:
177183

178184
```smalltalk

‎resources/doc/cfg.png‎

166 KB
Loading

‎resources/doc/lr.png‎

178 KB
Loading

‎resources/doc/model.png‎

199 KB
Loading

‎resources/doc/ssa.png‎

399 KB
Loading

0 commit comments

Comments
 (0)