From 259670cbbfb3d888707e0b5234b5bc6fa9f58440 Mon Sep 17 00:00:00 2001 From: paulklint Date: Thu, 4 Apr 2024 14:06:23 +0200 Subject: [PATCH 1/3] Commented out type incorrect asserts --- .../rascalmpl/library/lang/rascal/tests/basic/Functions.rsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/rascalmpl/library/lang/rascal/tests/basic/Functions.rsc b/src/org/rascalmpl/library/lang/rascal/tests/basic/Functions.rsc index eff38a9960f..47423ab6655 100644 --- a/src/org/rascalmpl/library/lang/rascal/tests/basic/Functions.rsc +++ b/src/org/rascalmpl/library/lang/rascal/tests/basic/Functions.rsc @@ -303,11 +303,11 @@ test bool selfApplyCurry() { func = curry(curry, addition); - assert int(int)(int) _ := func; + //assert int(int)(int) _ := func; func2 = func(1); - assert int(int) _ := func2; + //assert int(int) _ := func2; return func2(1) == 2; } From efd207fe3ef13f8a990abaff76f8af6a282e835a Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Thu, 4 Apr 2024 15:15:31 +0200 Subject: [PATCH 2/3] removed dead reference in docs --- src/org/rascalmpl/library/lang/box/util/Box2Text.rsc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/org/rascalmpl/library/lang/box/util/Box2Text.rsc b/src/org/rascalmpl/library/lang/box/util/Box2Text.rsc index 173418d6cab..3363219aa7f 100644 --- a/src/org/rascalmpl/library/lang/box/util/Box2Text.rsc +++ b/src/org/rascalmpl/library/lang/box/util/Box2Text.rsc @@ -22,7 +22,6 @@ and Eelco Visser (June 30, 1994). The original Box concept was introduced by Joe The main function `format` maps a Box tree to a `str`: * To obtain Box terms people typically transform ASTs or ((ParseTree))s to Box using pattern matching in Rascal. * ((Options)) encode global default options for constraint parameters that only override local parameters if they were elided. -* ((MarkupLanguage)) configures which markup language to use for syntax highlighting purposes. } @examples{ This demonstrates the semantics of the main hard constraints: From 458fb89cbcd47735f52859da802b16cee81a4585 Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Thu, 4 Apr 2024 15:16:57 +0200 Subject: [PATCH 3/3] removed dead examples --- src/org/rascalmpl/library/util/Progress.rsc | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/org/rascalmpl/library/util/Progress.rsc b/src/org/rascalmpl/library/util/Progress.rsc index 362134c1150..74db9e3f391 100644 --- a/src/org/rascalmpl/library/util/Progress.rsc +++ b/src/org/rascalmpl/library/util/Progress.rsc @@ -28,17 +28,6 @@ The total number of steps is the only required parameter to be passed in. All ot It is inspired on the progressbar described here: https://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console } -@examples{ -```rascal-shell - import util::Progress; - int total = 10; - pb = progressBar(total, length = 15, limit = 100); - for (i <- [0..total]) { - pb.report(" : of "); - } - pb.finished(); - ``` -} tuple[void(str) report, void() finished] progressBar(int total, str prefix = "Progress:", int length = 50, int limit = total, str fill = "\u2588", str unfill = "-", str printEnd = "\r") { limit = limit > total ? total : limit; @@ -63,16 +52,6 @@ tuple[void(str) report, void() finished] progressBar(int total, str prefix = "Pr It returns a function that can be called to make the spinner spin one rotation. This function takes a `suffix` string parameter that will be displayed behind the spinner } -@examples{ -```rascal-shell - import util::Progress; - import util::Math; - sp = spinner(); - while (n := arbInt(100), n != 1) { - sp(""); - } - ``` -} void (str) spinner(str prefix = " ", str printEnd = "\r") { int stat = 0;