MOAL.execution.compiler package

Subpackages

Submodules

MOAL.execution.compiler.abstract_syntax_tree module

MOAL.execution.compiler.abstract_syntax_tree.ast_drawing()[source]

The AST Drawing.

unaryOp = -1

(ROOT)
/ [-] [1]

binaryOp = 2 + 2

(ROOT)
/

[+] / [2] [2]

etc... foo = 3 * 9

(ROOT)
/ [=] [*]

/ / [foo] [3] [9]

MOAL.execution.compiler.abstract_syntax_tree.bar()[source]

Bar is a function that creates a range of ranges that increases by adding i + 1 each time, from 1 to 100, then sums the sum of each range and prints it.

MOAL.execution.compiler.abstract_syntax_tree.foo()[source]

Foo is a function that creates a range of ranges that increases by multiplying i + 1 each time, from 1 to 100, then sums the sum of each range and prints it.