-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathfib.pseudo.yaml
74 lines (74 loc) · 1.85 KB
/
fib.pseudo.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
constants: []
custom_exceptions: []
definitions:
- block:
- block:
- pseudo_type: Int
type: implicit_return
value: {pseudo_type: Int, type: int, value: 1}
otherwise:
block:
- pseudo_type: Int
type: implicit_return
value:
left:
args:
- left: {name: n, pseudo_type: Int, type: local}
op: '-'
pseudo_type: Int
right: {pseudo_type: Int, type: int, value: 1}
type: binary_op
function:
name: fib
pseudo_type: [Function, Int, Int]
type: local
pseudo_type: Int
type: call
op: +
pseudo_type: Int
right:
args:
- left: {name: n, pseudo_type: Int, type: local}
op: '-'
pseudo_type: Int
right: {pseudo_type: Int, type: int, value: 2}
type: binary_op
function:
name: fib
pseudo_type: [Function, Int, Int]
type: local
pseudo_type: Int
type: call
type: binary_op
pseudo_type: Void
type: else_statement
pseudo_type: Void
test:
left: {name: n, pseudo_type: Int, type: local}
op: <=
pseudo_type: Boolean
right: {pseudo_type: Int, type: int, value: 1}
type: comparison
type: if_statement
name: fib
params:
- {name: n, pseudo_type: Function, type: local}
pseudo_type: [Function, Int, Int]
return_type: Int
type: function_definition
dependencies: []
main:
- args:
- args:
- {pseudo_type: Int, type: int, value: 4}
function:
name: fib
pseudo_type: [Function, Int, Int]
type: local
pseudo_type: Int
type: call
function: display
namespace: io
pseudo_type: Void
type: standard_call
type: module