ziglings/exercises
Manlio Perillo 6b17a18893 Ensure the exercises use the canonical format
Add the check-exercises.py tool in the new tools directory.  It is used
to check that the exercises are correctly formatted, printing on stderr
the invalid ones and the diff in the unified format.

Update the exercises that don't use the canonical zig fmt format.

Update some patches that cause the generated zig file to be incorrectly
formatted.
2023-04-18 18:16:19 +02:00
..
001_hello.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
002_std.zig Fix: Fix grammar at 002_std.zig 2021-08-19 08:59:18 -07:00
003_assignment.zig Replace "−" with "-" in Assigment 3 tutorial text 2022-06-04 17:21:34 -06:00
004_arrays.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
005_arrays2.zig Improve wording in 005 arrays2 for #93 2022-03-19 19:46:29 -04:00
006_strings.zig Revert syntax demo, add note 2022-02-22 02:21:22 +01:00
007_strings2.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
008_quiz.zig New usize explanation 008, etc. 2021-06-14 11:26:04 -04:00
009_if.zig fix: Change order to match 011_while.zig 2021-08-17 00:01:55 -07:00
010_if2.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
011_while.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
012_while2.zig add spaces 2022-02-11 10:40:22 +00:00
013_while3.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
014_while4.zig Normalize interrobangs 2021-05-09 13:15:53 -04:00
015_for.zig feat: More descriptive definition 2021-08-17 00:28:40 -07:00
016_for2.zig dev.1711 - switched to multi-object-for-loops 2023-02-21 21:43:40 +01:00
017_quiz2.zig Cleaned up some trailing whitespace 2021-03-14 01:26:52 -05:00
018_functions.zig Update 018_functions.zig 2021-08-28 10:25:03 -04:00
019_functions2.zig adding enlightenment to 019 (for #50) 2021-04-26 20:45:19 -04:00
020_quiz3.zig adds missing 'the' to intro text 2023-02-16 00:39:56 +00:00
021_errors.zig use const for variables that are never modified 2022-01-01 02:20:26 +09:00
022_errors2.zig Normalized exercise output, answers (#41) 2021-04-04 16:29:28 -04:00
023_errors3.zig Normalized exercise output, answers (#41) 2021-04-04 16:29:28 -04:00
024_errors4.zig Update 024_errors4.zig 2021-08-28 10:35:40 -04:00
025_errors5.zig Normalized exercise output, answers (#41) 2021-04-04 16:29:28 -04:00
026_hello2.zig check for dev1650 and some minor polish 2023-02-19 17:52:16 +01:00
027_defer.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
028_defer2.zig Normalize interrobangs 2021-05-09 13:15:53 -04:00
029_errdefer.zig Fix a small typo in 029_errdefer.zig. 2021-03-26 22:21:53 +00:00
030_switch.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
031_switch2.zig use const for variables that are never modified 2022-01-01 02:20:26 +09:00
032_unreachable.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
033_iferror.zig use const for variables that are never modified 2022-01-01 02:20:26 +09:00
034_quiz4.zig Update 034_quiz4.zig 2021-11-10 11:30:37 -05:00
035_enums.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
036_enums2.zig mention builtin ex coming up 2021-04-10 14:45:25 -04:00
037_structs.zig Update 037_structs.zig 2021-08-29 08:37:56 -04:00
038_structs2.zig dev.1711 - switched to multi-object-for-loops 2023-02-21 21:43:40 +01:00
039_pointers.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
040_pointers2.zig improving the explanation 2023-04-05 16:11:56 +02:00
041_pointers3.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
042_pointers4.zig Update 042_pointers4.zig 2023-01-12 19:25:06 +01:00
043_pointers5.zig Correct conventional Zig reference vs value passing re #89 2022-07-31 15:58:24 -04:00
044_quiz5.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
045_optionals.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
046_optionals2.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
047_methods.zig Merge pull request #191 from chrboesch/dev_1711 2023-02-21 21:54:09 +01:00
048_methods2.zig function made more elegant 2023-03-30 23:11:40 +02:00
049_quiz6.zig this means 2021-05-13 14:01:54 +02:00
050_no_value.zig Updated build version requirement to 0.10.0-dev.3385 2022-07-31 11:04:16 -04:00
051_values.zig unused consts now errors 2021-06-30 19:00:50 -04:00
052_slices.zig Update 052_slices.zig 2021-08-30 17:55:32 -04:00
053_slices2.zig zig fmt 2021-11-05 17:47:12 +01:00
054_manypointers.zig Removed illegal type in pointer cheatsheet 2021-04-21 20:35:19 -04:00
055_unions.zig 055 typo 2021-04-17 18:15:30 -04:00
056_unions2.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
057_unions3.zig "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
058_quiz7.zig Ensure the exercises use the canonical format 2023-04-18 18:16:19 +02:00
059_integers.zig Ensure the exercises use the canonical format 2023-04-18 18:16:19 +02:00
060_floats.zig writen -> written 2023-01-17 23:24:32 +01:00
061_coercions.zig remove redundant word "a" 2021-12-25 15:21:33 -07:00
062_loop_expressions.zig fix loop else clause explanation 2022-04-22 17:50:10 -07:00
063_labels.zig dev.1711 - switched to multi-object-for-loops 2023-02-21 21:43:40 +01:00
064_builtins.zig comment corrected 2023-01-27 00:07:20 +01:00
065_builtins2.zig patch because of a change in @typeInfo 2023-01-14 15:36:36 +01:00
066_comptime.zig description specified 2023-01-29 17:52:11 +01:00
067_comptime2.zig zig fmt 2021-11-05 17:47:12 +01:00
068_comptime3.zig zig fmt 2021-11-05 17:47:12 +01:00
069_comptime4.zig Ensure the exercises use the canonical format 2023-04-18 18:16:19 +02:00
070_comptime5.zig changed self parameter in connect to pointer 2023-03-31 12:18:57 +02:00
071_comptime6.zig patch because of a change in @typeInfo 2023-01-14 15:36:36 +01:00
072_comptime7.zig fix whitespace line-endings 2021-11-05 17:46:56 +01:00
073_comptime8.zig fix whitespace line-endings 2021-11-05 17:46:56 +01:00
074_comptime9.zig Fix typo in 074 comptime 9 2021-05-02 13:41:36 +01:00
075_quiz8.zig Ensure the exercises use the canonical format 2023-04-18 18:16:19 +02:00
076_sentinels.zig Update sentinel type for v0.10.0 2022-03-19 19:38:05 -04:00
077_sentinels2.zig zig fmt 2021-11-05 17:47:12 +01:00
078_sentinels3.zig Fix 076, add 077,078 sentinels and many-item pointers 2021-05-08 18:51:08 -04:00
079_quoted_identifiers.zig Remove trailing whitespace. 2022-05-18 21:39:36 +02:00
080_anonymous_structs.zig Fix typo 2023-03-14 13:35:20 +01:00
081_anonymous_structs2.zig Fix exercises 058 and 081 🔧 2021-09-04 19:00:03 +03:00
082_anonymous_structs3.zig patch because of a change in @typeInfo 2023-01-14 15:36:36 +01:00
083_anonymous_lists.zig Ensure the exercises use the canonical format 2023-04-18 18:16:19 +02:00
084_async.zig fix whitespace line-endings 2021-11-05 17:46:56 +01:00
085_async2.zig fix whitespace line-endings 2021-11-05 17:46:56 +01:00
086_async3.zig change suspend; to suspend {} 2021-05-24 15:57:59 -04:00
087_async4.zig add ex087 async 4 2021-05-12 21:36:57 -04:00
088_async5.zig No unused fn params 2021-06-30 19:59:25 -04:00
089_async6.zig zig fmt 2021-11-05 17:47:12 +01:00
090_async7.zig fix whitespace line-endings 2021-11-05 17:46:56 +01:00
091_async8.zig Added ex91 - closing in on async! 2021-11-07 20:51:33 -05:00
092_interfaces.zig Ensure the exercises use the canonical format 2023-04-18 18:16:19 +02:00
093_hello_c.zig Fix typo 2023-03-14 13:43:50 +01:00
094_c_math.zig Exercise 094: Correct spelling and grammar 2023-03-30 09:40:13 -04:00
095_for_loops.zig exercise for new for-loops 2023-03-04 16:07:53 +01:00
096_memory_allocation.zig Update 096_memory_allocation.zig 2023-04-12 17:14:18 +02:00
097_bit_manipulation.zig Update 097_bit_manipulation.zig 2023-04-12 17:13:51 +02:00
098_bit_manipulation2.zig Update 098_bit_manipulation2.zig 2023-04-12 17:10:54 +02:00
999_the_end.zig changed 'the_end' to '999_the_end' 2023-01-22 13:12:53 +01:00