-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFeatures
More file actions
48 lines (41 loc) · 887 Bytes
/
Features
File metadata and controls
48 lines (41 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--------
Structure of AST
--------
Code block containing a list of statements and other code blocks
--------
NODES
--------
expression: evaluates to a primitive data structure
evaluates to
integer
float
string
boolean
(list, dictionary, class not included)
types
primitive data type
variable
operation
between data type, variable, other operations
statements
memory storage (variable, function initialization)
calling functions
built-in functions
print(), abs(), len(), pow()
full list: https://docs.python.org/3/library/functions.html
code block: statement or linked list of code blocks
functions: have additional inputs and return types
complex code blocks
if statements: condition, code block
loops: condition, code block
for, while
--------
ORGANIZATION
--------
NODE
INT_EXP
FLOAT_EXP
STRING_EXP
BOOLEAN_EXP
FUNCTION_CALL
ASSIGNMENT