From 5fe060d582d4a82444243a28b18085c971a85628 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 27 Jul 2018 17:07:52 -0700 Subject: 4447 --- html/edit/011-errors.mu.html | 64 ++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'html/edit/011-errors.mu.html') diff --git a/html/edit/011-errors.mu.html b/html/edit/011-errors.mu.html index 2a5511ac..96677150 100644 --- a/html/edit/011-errors.mu.html +++ b/html/edit/011-errors.mu.html @@ -15,17 +15,17 @@ body { font-size: 12pt; font-family: monospace; color: #aaaaaa; background-color a { color:#eeeeee; text-decoration: none; } a:hover { text-decoration: underline; } * { font-size: 12pt; font-size: 1em; } +.muData { color: #ffff00; } .muRecipe { color: #ff8700; } -.muScenario { color: #00af00; } .Special { color: #c00000; } .Delimiter { color: #800080; } .SalientComment { color: #00ffff; } .Constant { color: #00a0a0; } .LineNr { color: #444444; } +.muControl { color: #c0a020; } .Comment { color: #9090ff; } .Comment a { color:#0000ee; text-decoration:underline; } -.muControl { color: #c0a020; } -.muData { color: #ffff00; } +.muScenario { color: #00af00; } --> @@ -79,10 +79,10 @@ if ('onhashchange' in window) { 17 { 18 break-unless recipe-errors 19 update-status screen, [errors found ], 1/red - 20 errors-found? <- copy 1/true + 20 errors-found? <- copy true 21 return 22 } - 23 errors-found? <- copy 0/false + 23 errors-found? <- copy false 24 ] 25 26 after <begin-run-sandboxes-on-F4> [ @@ -92,7 +92,7 @@ if ('onhashchange' in window) { 30 # if there were recipe errors before, check if we can clear them 31 { 32 break-unless old-recipe-errors - 33 screen <- render-recipes screen, env, render + 33 screen <- render-recipes screen, env, render 34 } 35 render-recipe-errors env, screen 36 ] @@ -115,7 +115,7 @@ if ('onhashchange' in window) { 53 # draw dotted line after recipes 54 draw-horizontal screen, row, left, right, 9480/horizontal-dotted 55 row <- add row, 1 - 56 clear-screen-from screen, row, left, left, right + 56 clear-screen-from screen, row, left, left, right 57 ] 58 59 container environment [ @@ -135,7 +135,7 @@ if ('onhashchange' in window) { 73 error-index:num <- get *env, error-index:offset 74 sandboxes-completed-successfully?:bool <- equal error-index, -1 75 break-if sandboxes-completed-successfully? - 76 errors-found? <- copy 1/true + 76 errors-found? <- copy true 77 } 78 ] 79 @@ -206,7 +206,7 @@ if ('onhashchange' in window) { 144 ] 145 ] 146 env:&:environment <- new-programming-environment resources, screen, [foo] -147 render-all screen, env, render +147 render-all screen, env, render 148 screen-should-contain [ 149 . run (F4) . 150 .recipe foo [ ╎foo . @@ -254,7 +254,7 @@ if ('onhashchange' in window) { 192 assume-resources [ 193 ] 194 env:&:environment <- new-programming-environment resources, screen -195 render-all screen, env, render +195 render-all screen, env, render 196 assume-console [ 197 type [recipe foo x [ 198 ]] @@ -280,7 +280,7 @@ if ('onhashchange' in window) { 218 assume-resources [ 219 ] 220 env:&:environment <- new-programming-environment resources, screen, [] -221 render-all screen, env, render +221 render-all screen, env, render 222 assume-console [ 223 left-click 3, 80 224 # create invalid sandbox 1 @@ -306,7 +306,7 @@ if ('onhashchange' in window) { 244 assume-resources [ 245 ] 246 env:&:environment <- new-programming-environment resources, screen, [] -247 render-all screen, env, render +247 render-all screen, env, render 248 assume-console [ 249 left-click 3, 80 250 # create invalid sandbox 2 @@ -335,7 +335,7 @@ if ('onhashchange' in window) { 273 assume-resources [ 274 ] 275 env:&:environment <- new-programming-environment resources, screen, [get foo, x:offset] # invalid -276 render-all screen, env, render +276 render-all screen, env, render 277 assume-console [ 278 press F4 # generate error 279 ] @@ -372,13 +372,13 @@ if ('onhashchange' in window) { 310 |recipe foo x:_elem -> z:_elem [| 311 | local-scope| 312 | load-ingredients| -313 | y:&:num <- copy 0| +313 | y:&:num <- copy null| 314 | z <- add x, y| 315 |]| 316 ] 317 ] 318 env:&:environment <- new-programming-environment resources, screen, [foo 2] -319 render-all screen, env, render +319 render-all screen, env, render 320 assume-console [ 321 press F4 322 ] @@ -388,7 +388,7 @@ if ('onhashchange' in window) { 326 .recipe foo x:_elem -> z:_elem [ ╎ . 327 . local-scope ╎─────────────────────────────────────────────────. 328 . load-ingredients ╎0 edit copy to recipe delete . -329 . y:&:num <- copy 0 ╎foo 2 . +329 . y:&:num <- copy null ╎foo 2 . 330 . z <- add x, y ╎foo_2: 'add' requires number ingredients, but go↩. 331 .] ╎t 'y' . 332 . ╎─────────────────────────────────────────────────. @@ -408,7 +408,7 @@ if ('onhashchange' in window) { 346 .recipe foo x:_elem -> z:_elem [ ╎ . 347 . local-scope ╎─────────────────────────────────────────────────. 348 . load-ingredients ╎0 edit copy to recipe delete . -349 . y:&:num <- copy 0 ╎foo 2 . +349 . y:&:num <- copy null ╎foo 2 . 350 . z <- add x, y ╎foo_3: 'add' requires number ingredients, but go↩. 351 .] ╎t 'y' . 352 . ╎─────────────────────────────────────────────────. @@ -429,10 +429,10 @@ if ('onhashchange' in window) { 367 ] 368 ] 369 # call code that uses other variants of it, but not it itself -370 test-sandbox:text <- new [x:&:list:num <- copy 0 +370 test-sandbox:text <- new [x:&:list:num <- copy null 371 to-text x] 372 env:&:environment <- new-programming-environment resources, screen, test-sandbox -373 render-all screen, env, render +373 render-all screen, env, render 374 # run it once 375 assume-console [ 376 press F4 @@ -495,7 +495,7 @@ if ('onhashchange' in window) { 433 ] 434 ] 435 env:&:environment <- new-programming-environment resources, screen, [foo] -436 render-all screen, env, render +436 render-all screen, env, render 437 assume-console [ 438 press F4 439 ] @@ -509,7 +509,7 @@ if ('onhashchange' in window) { 447 .] ╎ . 448 . ╎ . 449 .foo: missing type for 'x' in 'x <- copy 0' ╎ . -450 .foo: can't copy '0' to 'x'; types don't match ╎ . +450 .foo: can't copy '0' to 'x'; types don't match ╎ . 451 .╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╎ . 452 . ╎ . 453 ] @@ -527,7 +527,7 @@ if ('onhashchange' in window) { 465 ] 466 ] 467 env:&:environment <- new-programming-environment resources, screen, [foo] -468 render-all screen, env, render +468 render-all screen, env, render 469 assume-console [ 470 press F4 471 ] @@ -559,7 +559,7 @@ if ('onhashchange' in window) { 497 ] 498 ] 499 env:&:environment <- new-programming-environment resources, screen, [foo] -500 render-all screen, env, render +500 render-all screen, env, render 501 assume-console [ 502 press F4 503 ] @@ -596,7 +596,7 @@ if ('onhashchange' in window) { 534 ] 535 ] 536 env:&:environment <- new-programming-environment resources, screen, [foo] -537 render-all screen, env, render +537 render-all screen, env, render 538 assume-console [ 539 press F4 540 ] @@ -633,7 +633,7 @@ if ('onhashchange' in window) { 571 ] 572 ] 573 env:&:environment <- new-programming-environment resources, screen, [foo] -574 render-all screen, env, render +574 render-all screen, env, render 575 assume-console [ 576 press F4 577 ] @@ -685,7 +685,7 @@ if ('onhashchange' in window) { 623 ] 624 ] 625 env:&:environment <- new-programming-environment resources, screen, [foo] -626 render-all screen, env, render +626 render-all screen, env, render 627 assume-console [ 628 press F4 629 ] @@ -738,11 +738,11 @@ if ('onhashchange' in window) { 676 ] 677 ] 678 env:&:environment <- new-programming-environment resources, screen, [foo] -679 render-all screen, env, render +679 render-all screen, env, render 680 # hit F4, generating errors, then scroll down 681 assume-console [ 682 press F4 -683 press page-down +683 press page-down 684 ] 685 run [ 686 event-loop screen, console, env, resources @@ -765,7 +765,7 @@ if ('onhashchange' in window) { 703 ] 704 # sandbox editor contains an illegal instruction 705 env:&:environment <- new-programming-environment resources, screen, [get 1234:num, foo:offset] -706 render-all screen, env, render +706 render-all screen, env, render 707 assume-console [ 708 press F4 709 ] @@ -828,7 +828,7 @@ if ('onhashchange' in window) { 766 ] 767 # sandbox editor contains an illegal instruction 768 env:&:environment <- new-programming-environment resources, screen, [get 1234:num, foo:offset] -769 render-all screen, env, render +769 render-all screen, env, render 770 # run the code in the editors multiple times 771 assume-console [ 772 press F4 @@ -867,7 +867,7 @@ if ('onhashchange' in window) { 805 ] 806 ] 807 env:&:environment <- new-programming-environment resources, screen, [foo] -808 render-all screen, env, render +808 render-all screen, env, render 809 # run the sandbox 810 assume-console [ 811 press F4 @@ -906,7 +906,7 @@ if ('onhashchange' in window) { 844 ] 845 ] 846 env:&:environment <- new-programming-environment resources, screen, [foo 4, 0] -847 render-all screen, env, render +847 render-all screen, env, render 848 # run 849 assume-console [ 850 press F4 -- cgit 1.4.1-2-gfad0