From 8b043bd0c1f0e9d8962590e44b12e7710ca97772 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 6 Aug 2020 13:43:42 +0200 Subject: [PATCH] :art: Use @hide --- docs/Overview/declaration.mdr | 6 +++--- docs/README.mdr | 2 +- docs/Reference/ControlFlow/Repeat.mdr | 4 ++-- docs/Reference/ControlFlow/forloop.mdr | 10 +++++----- docs/Reference/ControlFlow/whileuntil.mdr | 4 ++-- docs/Reference/Functions/Lambdas.mdr | 6 +++--- docs/Reference/Functions/README.mdr | 2 +- docs/Reference/Functions/Variadic.mdr | 2 +- docs/Reference/Types/Enums.mdr | 2 +- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/Overview/declaration.mdr b/docs/Overview/declaration.mdr index 9715be83..d4666ce1 100644 --- a/docs/Overview/declaration.mdr +++ b/docs/Overview/declaration.mdr @@ -8,7 +8,7 @@ int i; Object o; <<< i, " ", o >>>; @``` -@exec make -s decl0.test +@hide make -s decl0.test ## Declaring a reference @@ -19,7 +19,7 @@ Object ref ref; new Object @=> ref; <<< "But now it does: ", ref >>>; @``` -@exec make -s decl1.test +@hide make -s decl1.test ## Arrays @@ -31,4 +31,4 @@ int ref[]; new int[2] @=> ref; <<< ref >>>; @``` -@exec make -s decl2.test +@hide make -s decl2.test diff --git a/docs/README.mdr b/docs/README.mdr index 89e44d0c..33785d24 100644 --- a/docs/README.mdr +++ b/docs/README.mdr @@ -10,7 +10,7 @@ Here is the piece of code you're waiting for :tada:: @``` helloworld.gw <<< "Hello, World!" >>>; @``` -@exec make -s CONTAINS="Hello, World!" helloworld.test +@hide make -s CONTAINS="Hello, World!" helloworld.test ## (Bag of) Features * [single inheritance](https://en.wikipedia.org/wiki/Inheritance_(object-oriented_programming)#Design_constraints) diff --git a/docs/Reference/ControlFlow/Repeat.mdr b/docs/Reference/ControlFlow/Repeat.mdr index 26428c73..4846ba4a 100644 --- a/docs/Reference/ControlFlow/Repeat.mdr +++ b/docs/Reference/ControlFlow/Repeat.mdr @@ -8,7 +8,7 @@ The easiest way to do an action repeatidly in Gwion is, ... the **repeat** keywo repeat(3) <<< "Hello, world!" >>>; @``` -@exec make -s CONTAINS="Hello" repeat.test +@hide make -s CONTAINS="Hello" repeat.test ## Block example @@ -21,4 +21,4 @@ repeat(3) { <<< "Hello, ", s, "!" >>>; } @``` -@exec make -s CONTAINS="Hello" repeat2.test +@hide make -s CONTAINS="Hello" repeat2.test diff --git a/docs/Reference/ControlFlow/forloop.mdr b/docs/Reference/ControlFlow/forloop.mdr index c9dafd35..345bdf71 100644 --- a/docs/Reference/ControlFlow/forloop.mdr +++ b/docs/Reference/ControlFlow/forloop.mdr @@ -6,7 +6,7 @@ for(int i; i < 3; ++i) <<< i >>>; @``` -@exec make -s forloop0.test +@hide make -s forloop0.test It also works with a block of code. @@ -17,7 +17,7 @@ for(int i; i < 3; ++i) { <<< i, " " , f1, " ", f2 >>>; } @``` -@exec make -s forloop2.test +@hide make -s forloop2.test ## Nested Loops @``` forloop3.gw @@ -29,7 +29,7 @@ for(int i; i < 3; ++i) { } } @``` -@exec make -s forloop3.test +@hide make -s forloop3.test ### Auto Loops @@ -42,7 +42,7 @@ for(auto a: array) { <<< b >>>; } @``` -@exec make -s forloop4.test +@hide make -s forloop4.test ### Auto Pointer loop If you want to change it the value in the array, you need a pointer @@ -59,4 +59,4 @@ for(auto a: array) { <<< *b >>>; } @``` -@exec make -s forloop5.test +@hide make -s forloop5.test diff --git a/docs/Reference/ControlFlow/whileuntil.mdr b/docs/Reference/ControlFlow/whileuntil.mdr index 04bf9c36..24fdea62 100644 --- a/docs/Reference/ControlFlow/whileuntil.mdr +++ b/docs/Reference/ControlFlow/whileuntil.mdr @@ -7,7 +7,7 @@ while(true) { <<< "running..." >>>; } @``` -@exec make -s while0.test +@hide make -s while0.test well this may output nothing... lets try @@ -20,4 +20,4 @@ do{ <<< "running..." >>>; } while(true); @``` -@exec make -s while1.test +@hide make -s while1.test diff --git a/docs/Reference/Functions/Lambdas.mdr b/docs/Reference/Functions/Lambdas.mdr index add84dd1..fec5d215 100644 --- a/docs/Reference/Functions/Lambdas.mdr +++ b/docs/Reference/Functions/Lambdas.mdr @@ -13,7 +13,7 @@ You can even use it to @``` lambda_call0.gw \ i { <<< "passed '", i, "'" >>>; }(3); @``` -@exec make -s CONTAINS="passed '3'" lambda_call0.test +@hide make -s CONTAINS="passed '3'" lambda_call0.test ## Use case @@ -24,7 +24,7 @@ typedef void fptr_t(int); \ i { <<< "passed '", i, "'" >>>; } @=> fptr_t fptr; fptr(4); @``` -@exec make -s CONTAINS="passed '4'" lambda_fptr0.test +@hide make -s CONTAINS="passed '4'" lambda_fptr0.test ### As Argument to Functions @``` lambda_args0.gw @@ -34,4 +34,4 @@ fun void test(fptr_t fptr) { } test(\ i { <<< "passed '", i, "'" >>>; }); @``` -@exec make -s CONTAINS="passed '5'" lambda_args0.test +@hide make -s CONTAINS="passed '5'" lambda_args0.test diff --git a/docs/Reference/Functions/README.mdr b/docs/Reference/Functions/README.mdr index 2fab4d37..8fd1bb98 100644 --- a/docs/Reference/Functions/README.mdr +++ b/docs/Reference/Functions/README.mdr @@ -16,4 +16,4 @@ fun int test_function(int arg) { #! or use alternate syntax <<< 1 => test_function >>>; @``` -@exec make -s function0.test +@hide make -s function0.test diff --git a/docs/Reference/Functions/Variadic.mdr b/docs/Reference/Functions/Variadic.mdr index ef997e4f..46099fb2 100644 --- a/docs/Reference/Functions/Variadic.mdr +++ b/docs/Reference/Functions/Variadic.mdr @@ -16,4 +16,4 @@ variadic_test(1); variadic_test(1, 2); variadic_test(1, 2, 3); @``` -@exec make -s variadic.test +@hide make -s variadic.test diff --git a/docs/Reference/Types/Enums.mdr b/docs/Reference/Types/Enums.mdr index 19cf9f7c..ed1e3ab7 100644 --- a/docs/Reference/Types/Enums.mdr +++ b/docs/Reference/Types/Enums.mdr @@ -15,7 +15,7 @@ enum Optionnal_name { }; <<< zero, one, two >>>; @``` -@exec make -s enum0.test +@hide make -s enum0.test ## Storage and access Specifiers -- 2.43.0