Skip to content

Commit 88c5a2a

Browse files
committed
docs: use definition template and align with assembly notes
1 parent 6a2e2ca commit 88c5a2a

4 files changed

Lines changed: 43 additions & 27 deletions

File tree

1_core_language/4_execution_model/1_structure_of_a_program/0_def.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
structure of a python program (Python Software Foundation, 2023):
2+
- formal: ???
3+
- in words: ???
4+
5+
- plain english: ???
6+
7+
- intuition: ???
8+
9+
- properties:
10+
- flow: ???
11+
12+
- composed of code blocks that:
13+
- run in an execution frame.
14+
15+
def name resolution
16+
17+
def block environment
18+
19+
def exec()
20+
21+
def eval()
22+
23+
builtins and restricted execution
24+
def builtins
25+
26+
interaction with dynamic features
27+
28+
exceptions
29+
def exception
30+
31+
def raised
32+
33+
def handled
34+
35+
def termination model error handling
36+
37+
- examples:
38+
- 4_experiments/1_core_language/8_compound_statements/3_for_statement/for.py
39+
40+
References:
41+
Python Software Foundation. 2023. Execution model. https://docs.python.org/3.11/reference/executionmodel.html#structure-of-a-program

1_core_language/4_execution_model/1_structure_of_a_program/1_code_block.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ def code block: piece of python program text that's
2323
see: ./src/3_execution_model/1_code_block.py
2424

2525
References:
26-
Python Software Foundation. 2023. Execution model. https://docs.python.org/3.11/reference/executionmodel.html.
26+
Python Software Foundation. 2023. Execution model. https://docs.python.org/3.11/reference/executionmodel.html

1_core_language/4_execution_model/1_structure_of_a_program/2_execution_frame.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ def execution frame: context
88
see: ./src/3_execution_model/2_execution_frame.py
99

1010
References:
11-
Python Software Foundation. 2023. Execution model. https://docs.python.org/3.11/reference/executionmodel.html#structure-of-a-program.
11+
Python Software Foundation. 2023. Execution model. https://docs.python.org/3.11/reference/executionmodel.html#structure-of-a-program

0 commit comments

Comments
 (0)