1
Тест работы отладчика SBL ====================================
2
--- test/source/simodo-script/debug/asynch-01.simodo-script :
3
import "../import/asynch.simodo-script"
6
def auto : factor = fn [factor] (int : x) -> int
14
def auto : future = async.future( fn [factor] () { return factor(3) } )
15
def int : f = factor(3)
18
print f == future.get()
22
Интерпретация выполнена успешно
23
--- test/source/simodo-script/debug/divide-by-zero.simodo-script :
28
def auto : div = fn (int : x, int : y) -> int
37
Ошибка: Произошло исключение при обработке оператора SBL
38
Описание исключения: Деление на ноль
39
Позиция разбора: test/source/simodo-script/debug/divide-by-zero.simodo-script:7:21[7,22]
40
Остановка программы произошла из-за нити 2
41
Индексы исходных файлов:
42
0. data/grammar/contracts/initial-contracts.simodo-script
43
1. data/grammar/contracts/range.simodo-script
44
2. test/source/simodo-script/debug/divide-by-zero.simodo-script
45
Структура нитей (name/no, status, (file,line,host,op), need_delete, waiting_for_no, error? causer?):
46
> 2, Paused, (f:2, l:7, h:, o:64), no, -, error causer
47
fn div(int x, int y) -> int
50
called from (f:2, l:10, h:, o:4):
55
--- test/source/simodo-script/debug/fiber-01-primes-100.simodo-script :
56
import "../import/primes.simodo-script" type Primes : p1
87
Интерпретация выполнена успешно
88
Тест работы отладчика с точками останова =====================
89
--- test/source/simodo-script/debug/asynch-01.simodo-script :
90
import "../import/asynch.simodo-script"
93
def auto : factor = fn [factor] (int : x) -> int
101
def auto : future = async.future( fn [factor] () { return factor(3) } )
102
def int : f = factor(3)
105
print f == future.get()
107
Остановка программы произошла из-за нити 2
108
Индексы исходных файлов:
109
0. data/grammar/contracts/initial-contracts.simodo-script
110
1. data/grammar/contracts/range.simodo-script
111
2. test/source/simodo-script/debug/asynch-01.simodo-script
112
3. test/source/simodo-script/debug/../import/asynch.simodo-script
113
4. test/source/simodo-script/debug/../import/promise.simodo-script
114
5. test/source/simodo-script/debug/../import/future.simodo-script
115
Структура нитей (name/no, status, (file,line,host,op), need_delete, waiting_for_no, error? causer?):
116
> 2, Paused, (f:2, l:12, h:, o:2), no, - causer
119
async = {Promise:{ret:<null>, func:<function>, remote_calling:<function>}, Future:{prom:{ret:<null>, func:<function>, remote_calling:<function>}, get:<function>}, future:<function>}
120
Интерпретация прервана
121
--- test/source/simodo-script/debug/divide-by-zero.simodo-script :
126
def auto : div = fn (int : x, int : y) -> int
135
Остановка программы произошла из-за нити 2
136
Индексы исходных файлов:
137
0. data/grammar/contracts/initial-contracts.simodo-script
138
1. data/grammar/contracts/range.simodo-script
139
2. test/source/simodo-script/debug/divide-by-zero.simodo-script
140
Структура нитей (name/no, status, (file,line,host,op), need_delete, waiting_for_no, error? causer?):
141
> 2, Paused, (f:2, l:7, h:, o:2), no, - causer
142
fn div(int x, int y) -> int
145
called from (f:2, l:10, h:, o:4):
149
Интерпретация прервана
150
--- test/source/simodo-script/debug/fiber-01-primes-100.simodo-script :
151
import "../import/primes.simodo-script" type Primes : p1
158
Остановка программы произошла из-за нити primes/3
159
Индексы исходных файлов:
160
0. data/grammar/contracts/initial-contracts.simodo-script
161
1. data/grammar/contracts/range.simodo-script
162
2. test/source/simodo-script/debug/fiber-01-primes-100.simodo-script
163
3. test/source/simodo-script/debug/../import/primes.simodo-script
164
Структура нитей (name/no, status, (file,line,host,op), need_delete, waiting_for_no, error? causer?):
165
> 2, Delayed, (f:2, l:5, h:, o:112), no, primes/3
166
-> primes/3, Paused, (f:3, l:11, h:, o:1), yes, - causer
167
fn check_prime(int no) -> bool
169
call point is out, formal call location: (f:2, l:4):
170
fn prime(int start, int end)
174
Интерпретация прервана