diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | exercises/01_hello.zig (renamed from 01_hello.zig) | 0 | ||||
-rw-r--r-- | exercises/02_std.zig (renamed from 02_std.zig) | 0 | ||||
-rw-r--r-- | exercises/03_assignment.zig (renamed from 03_assignment.zig) | 0 | ||||
-rw-r--r-- | exercises/04_arrays.zig (renamed from 04_arrays.zig) | 0 | ||||
-rw-r--r-- | exercises/05_arrays2.zig (renamed from 05_arrays2.zig) | 0 | ||||
-rw-r--r-- | exercises/06_strings.zig (renamed from 06_strings.zig) | 0 | ||||
-rw-r--r-- | exercises/07_strings2.zig (renamed from 07_strings2.zig) | 0 | ||||
-rw-r--r-- | exercises/08_quiz.zig (renamed from 08_quiz.zig) | 0 | ||||
-rw-r--r-- | exercises/09_if.zig (renamed from 09_if.zig) | 0 | ||||
-rw-r--r-- | exercises/10_if2.zig (renamed from 10_if2.zig) | 0 | ||||
-rw-r--r-- | exercises/11_while.zig (renamed from 11_while.zig) | 0 | ||||
-rw-r--r-- | exercises/12_while2.zig (renamed from 12_while2.zig) | 0 | ||||
-rw-r--r-- | exercises/13_while3.zig (renamed from 13_while3.zig) | 0 | ||||
-rw-r--r-- | exercises/14_while4.zig (renamed from 14_while4.zig) | 0 | ||||
-rw-r--r-- | exercises/15_for.zig (renamed from 15_for.zig) | 0 | ||||
-rw-r--r-- | exercises/16_for2.zig (renamed from 16_for2.zig) | 0 | ||||
-rw-r--r-- | exercises/17_quiz2.zig (renamed from 17_quiz2.zig) | 0 | ||||
-rw-r--r-- | exercises/18_functions.zig (renamed from 18_functions.zig) | 0 | ||||
-rw-r--r-- | exercises/19_functions2.zig (renamed from 19_functions2.zig) | 0 | ||||
-rw-r--r-- | exercises/20_quiz3.zig (renamed from 20_quiz3.zig) | 0 | ||||
-rw-r--r-- | exercises/21_errors.zig (renamed from 21_errors.zig) | 0 | ||||
-rw-r--r-- | exercises/22_errors2.zig (renamed from 22_errors2.zig) | 0 | ||||
-rw-r--r-- | exercises/23_errors3.zig (renamed from 23_errors3.zig) | 0 | ||||
-rw-r--r-- | exercises/24_errors4.zig (renamed from 24_errors4.zig) | 0 | ||||
-rw-r--r-- | exercises/25_errors5.zig (renamed from 25_errors5.zig) | 0 | ||||
-rw-r--r-- | exercises/26_hello2.zig (renamed from 26_hello2.zig) | 0 | ||||
-rw-r--r-- | exercises/27_defer.zig (renamed from 27_defer.zig) | 0 | ||||
-rw-r--r-- | exercises/28_defer2.zig (renamed from 28_defer2.zig) | 0 | ||||
-rw-r--r-- | exercises/29_errdefer.zig (renamed from 29_errdefer.zig) | 0 | ||||
-rw-r--r-- | exercises/30_switch.zig (renamed from 30_switch.zig) | 0 | ||||
-rw-r--r-- | exercises/31_switch2.zig (renamed from 31_switch2.zig) | 0 | ||||
-rw-r--r-- | exercises/32_unreachable.zig (renamed from 32_unreachable.zig) | 0 | ||||
-rw-r--r-- | exercises/33_iferror.zig (renamed from 33_iferror.zig) | 0 | ||||
-rw-r--r-- | exercises/34_quiz4.zig (renamed from 34_quiz4.zig) | 0 | ||||
-rw-r--r-- | exercises/35_enums.zig (renamed from 35_enums.zig) | 0 | ||||
-rw-r--r-- | exercises/36_enums2.zig (renamed from 36_enums2.zig) | 0 | ||||
-rw-r--r-- | exercises/37_structs.zig (renamed from 37_structs.zig) | 0 | ||||
-rw-r--r-- | exercises/38_structs2.zig (renamed from 38_structs2.zig) | 0 | ||||
-rw-r--r-- | exercises/39_pointers.zig (renamed from 39_pointers.zig) | 0 | ||||
-rw-r--r-- | exercises/40_pointers2.zig (renamed from 40_pointers2.zig) | 0 | ||||
-rw-r--r-- | exercises/41_pointers3.zig (renamed from 41_pointers3.zig) | 0 | ||||
-rw-r--r-- | exercises/42_pointers4.zig (renamed from 42_pointers4.zig) | 0 | ||||
-rw-r--r-- | exercises/43_pointers5.zig (renamed from 43_pointers5.zig) | 0 | ||||
-rwxr-xr-x | ziglings | 2 |
45 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ # ziglings -Welcome to `ziglings`. This project contains a series of incomplete exercises. +Welcome to `ziglings`! This project contains a series of incomplete exercises. By completing the exercises, you learn how to read and write [Zig](https://ziglang.org/) code. @@ -55,7 +55,7 @@ If you can't (or don't want to) use the script, you can manually verify each exercise with the Zig compiler: ```bash -zig run 01_hello.zig +zig run exercises/01_hello.zig ``` ## TODO diff --git a/01_hello.zig b/exercises/01_hello.zig index 8d26940..8d26940 100644 --- a/01_hello.zig +++ b/exercises/01_hello.zig diff --git a/02_std.zig b/exercises/02_std.zig index dcc1b87..dcc1b87 100644 --- a/02_std.zig +++ b/exercises/02_std.zig diff --git a/03_assignment.zig b/exercises/03_assignment.zig index d26f2a2..d26f2a2 100644 --- a/03_assignment.zig +++ b/exercises/03_assignment.zig diff --git a/04_arrays.zig b/exercises/04_arrays.zig index 0f4ffe1..0f4ffe1 100644 --- a/04_arrays.zig +++ b/exercises/04_arrays.zig diff --git a/05_arrays2.zig b/exercises/05_arrays2.zig index 9282a31..9282a31 100644 --- a/05_arrays2.zig +++ b/exercises/05_arrays2.zig diff --git a/06_strings.zig b/exercises/06_strings.zig index 2430884..2430884 100644 --- a/06_strings.zig +++ b/exercises/06_strings.zig diff --git a/07_strings2.zig b/exercises/07_strings2.zig index bb81bc7..bb81bc7 100644 --- a/07_strings2.zig +++ b/exercises/07_strings2.zig diff --git a/08_quiz.zig b/exercises/08_quiz.zig index e23f856..e23f856 100644 --- a/08_quiz.zig +++ b/exercises/08_quiz.zig diff --git a/09_if.zig b/exercises/09_if.zig index 28ac712..28ac712 100644 --- a/09_if.zig +++ b/exercises/09_if.zig diff --git a/10_if2.zig b/exercises/10_if2.zig index 4f559cd..4f559cd 100644 --- a/10_if2.zig +++ b/exercises/10_if2.zig diff --git a/11_while.zig b/exercises/11_while.zig index 4c4fc4f..4c4fc4f 100644 --- a/11_while.zig +++ b/exercises/11_while.zig diff --git a/12_while2.zig b/exercises/12_while2.zig index 6f808c8..6f808c8 100644 --- a/12_while2.zig +++ b/exercises/12_while2.zig diff --git a/13_while3.zig b/exercises/13_while3.zig index 3ff42ff..3ff42ff 100644 --- a/13_while3.zig +++ b/exercises/13_while3.zig diff --git a/14_while4.zig b/exercises/14_while4.zig index a28b9a9..a28b9a9 100644 --- a/14_while4.zig +++ b/exercises/14_while4.zig diff --git a/15_for.zig b/exercises/15_for.zig index 652478b..652478b 100644 --- a/15_for.zig +++ b/exercises/15_for.zig diff --git a/16_for2.zig b/exercises/16_for2.zig index 0a62a1a..0a62a1a 100644 --- a/16_for2.zig +++ b/exercises/16_for2.zig diff --git a/17_quiz2.zig b/exercises/17_quiz2.zig index 339f733..339f733 100644 --- a/17_quiz2.zig +++ b/exercises/17_quiz2.zig diff --git a/18_functions.zig b/exercises/18_functions.zig index bda90cd..bda90cd 100644 --- a/18_functions.zig +++ b/exercises/18_functions.zig diff --git a/19_functions2.zig b/exercises/19_functions2.zig index 4d195a7..4d195a7 100644 --- a/19_functions2.zig +++ b/exercises/19_functions2.zig diff --git a/20_quiz3.zig b/exercises/20_quiz3.zig index e18ef37..e18ef37 100644 --- a/20_quiz3.zig +++ b/exercises/20_quiz3.zig diff --git a/21_errors.zig b/exercises/21_errors.zig index 34c5e18..34c5e18 100644 --- a/21_errors.zig +++ b/exercises/21_errors.zig diff --git a/22_errors2.zig b/exercises/22_errors2.zig index fcfd391..fcfd391 100644 --- a/22_errors2.zig +++ b/exercises/22_errors2.zig diff --git a/23_errors3.zig b/exercises/23_errors3.zig index 6060bf1..6060bf1 100644 --- a/23_errors3.zig +++ b/exercises/23_errors3.zig diff --git a/24_errors4.zig b/exercises/24_errors4.zig index b60cc2d..b60cc2d 100644 --- a/24_errors4.zig +++ b/exercises/24_errors4.zig diff --git a/25_errors5.zig b/exercises/25_errors5.zig index d9e9ce1..d9e9ce1 100644 --- a/25_errors5.zig +++ b/exercises/25_errors5.zig diff --git a/26_hello2.zig b/exercises/26_hello2.zig index 237d27c..237d27c 100644 --- a/26_hello2.zig +++ b/exercises/26_hello2.zig diff --git a/27_defer.zig b/exercises/27_defer.zig index b41e2af..b41e2af 100644 --- a/27_defer.zig +++ b/exercises/27_defer.zig diff --git a/28_defer2.zig b/exercises/28_defer2.zig index 5c991da..5c991da 100644 --- a/28_defer2.zig +++ b/exercises/28_defer2.zig diff --git a/29_errdefer.zig b/exercises/29_errdefer.zig index cd2158d..cd2158d 100644 --- a/29_errdefer.zig +++ b/exercises/29_errdefer.zig diff --git a/30_switch.zig b/exercises/30_switch.zig index b10ad14..b10ad14 100644 --- a/30_switch.zig +++ b/exercises/30_switch.zig diff --git a/31_switch2.zig b/exercises/31_switch2.zig index 138b809..138b809 100644 --- a/31_switch2.zig +++ b/exercises/31_switch2.zig diff --git a/32_unreachable.zig b/exercises/32_unreachable.zig index c81efac..c81efac 100644 --- a/32_unreachable.zig +++ b/exercises/32_unreachable.zig diff --git a/33_iferror.zig b/exercises/33_iferror.zig index ed92e94..ed92e94 100644 --- a/33_iferror.zig +++ b/exercises/33_iferror.zig diff --git a/34_quiz4.zig b/exercises/34_quiz4.zig index 43734b7..43734b7 100644 --- a/34_quiz4.zig +++ b/exercises/34_quiz4.zig diff --git a/35_enums.zig b/exercises/35_enums.zig index cf455a4..cf455a4 100644 --- a/35_enums.zig +++ b/exercises/35_enums.zig diff --git a/36_enums2.zig b/exercises/36_enums2.zig index 2e04415..2e04415 100644 --- a/36_enums2.zig +++ b/exercises/36_enums2.zig diff --git a/37_structs.zig b/exercises/37_structs.zig index dd4b633..dd4b633 100644 --- a/37_structs.zig +++ b/exercises/37_structs.zig diff --git a/38_structs2.zig b/exercises/38_structs2.zig index b6def93..b6def93 100644 --- a/38_structs2.zig +++ b/exercises/38_structs2.zig diff --git a/39_pointers.zig b/exercises/39_pointers.zig index 25b56c6..25b56c6 100644 --- a/39_pointers.zig +++ b/exercises/39_pointers.zig diff --git a/40_pointers2.zig b/exercises/40_pointers2.zig index b046dc1..b046dc1 100644 --- a/40_pointers2.zig +++ b/exercises/40_pointers2.zig diff --git a/41_pointers3.zig b/exercises/41_pointers3.zig index 21a43bd..21a43bd 100644 --- a/41_pointers3.zig +++ b/exercises/41_pointers3.zig diff --git a/42_pointers4.zig b/exercises/42_pointers4.zig index e6b8964..e6b8964 100644 --- a/42_pointers4.zig +++ b/exercises/42_pointers4.zig diff --git a/43_pointers5.zig b/exercises/43_pointers5.zig index adfaea1..adfaea1 100644 --- a/43_pointers5.zig +++ b/exercises/43_pointers5.zig @@ -20,7 +20,7 @@ fmt_off=$( tput sgr0 ) # reset colors/effects exercise_num=0 function check_it { - source_file=$1 + source_file="exercises/$1" correct_output=$2 hint=$3 |