ziglings/patches/patches
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.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
002_std.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
003_assignment.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
004_arrays.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
005_arrays2.patch Manually cleaned up patches/patches for issue #73 2022-03-19 21:10:44 -04:00
006_strings.patch Manually cleaned up patches/patches for issue #73 2022-03-19 21:10:44 -04:00
007_strings2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
008_quiz.patch New usize explanation 008, etc. 2021-06-14 11:26:04 -04:00
009_if.patch Manually cleaned up patches/patches for issue #73 2022-03-19 21:10:44 -04:00
010_if2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
011_while.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
012_while2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
013_while3.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
014_while4.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
015_for.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
016_for2.patch dev.1711 - switched to multi-object-for-loops 2023-02-21 21:43:40 +01:00
017_quiz2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
018_functions.patch Manually cleaned up patches/patches for issue #73 2022-03-19 21:10:44 -04:00
019_functions2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
020_quiz3.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
021_errors.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
022_errors2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
023_errors3.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
024_errors4.patch Ensure the exercises use the canonical format 2023-04-18 18:16:19 +02:00
025_errors5.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
026_hello2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
027_defer.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
028_defer2.patch Normalize interrobangs 2021-05-09 13:15:53 -04:00
029_errdefer.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
030_switch.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
031_switch2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
032_unreachable.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
033_iferror.patch Updated for dev pre-release build v0.9.0-dev.1343 2021-10-09 10:19:34 -04:00
034_quiz4.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
035_enums.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
036_enums2.patch Re-sync patches with current changes 2021-06-14 11:52:22 -04:00
037_structs.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
038_structs2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
039_pointers.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
040_pointers2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
041_pointers3.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
042_pointers4.patch Correct conventional Zig reference vs value passing re #89 2022-07-31 15:58:24 -04:00
043_pointers5.patch Correct conventional Zig reference vs value passing re #89 2022-07-31 15:58:24 -04:00
044_quiz5.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
045_optionals.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
046_optionals2.patch Manually cleaned up patches/patches for issue #73 2022-03-19 21:10:44 -04:00
047_methods.patch Update ex 047 comment and patch 2022-07-31 11:32:51 -04:00
048_methods2.patch function made more elegant 2023-03-30 23:11:40 +02:00
049_quiz6.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
050_no_value.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
051_values.patch unused consts now errors 2021-06-30 19:00:50 -04:00
052_slices.patch Re-sync patches with current changes 2021-06-14 11:52:22 -04:00
053_slices2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
054_manypointers.patch Re-sync patches with current changes 2021-06-14 11:52:22 -04:00
055_unions.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
056_unions2.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
057_unions3.patch "999 is enough for anybody" triple-zero padding (#18) 2021-03-12 18:59:46 -05:00
058_quiz7.patch Manually cleaned up patches/patches for issue #73 2022-03-19 21:10:44 -04:00
059_integers.patch Ensure the exercises use the canonical format 2023-04-18 18:16:19 +02:00
060_floats.patch Added ex060 floats 2021-04-09 13:02:36 -04:00
061_coercions.patch added ex061 coercions 2021-04-09 14:41:25 -04:00
062_loop_expressions.patch Clarity for 062 and tupni for 064 2021-04-17 20:03:04 -04:00
063_labels.patch Manually cleaned up patches/patches for issue #73 2022-03-19 21:10:44 -04:00
064_builtins.patch corrected @bitReverse for only 1 arg, instead of 2 args 2022-09-03 10:56:25 +02:00
065_builtins2.patch fixed patches 2023-01-21 17:03:40 +01:00
066_comptime.patch Fix typo in 066 (issue #46) 2021-04-24 12:37:27 -04:00
067_comptime2.patch Another try at wording ex067 2021-04-16 22:15:27 -04:00
068_comptime3.patch add ex068 comptime 3 2021-04-18 18:05:36 -04:00
069_comptime4.patch add ex069 comptime 4 2021-04-21 09:47:16 -04:00
070_comptime5.patch no unused method params 2021-06-30 19:28:27 -04:00
071_comptime6.patch No unused locals 2021-06-30 19:39:36 -04:00
072_comptime7.patch add 072 comptime 7 2021-04-24 14:34:46 -04:00
073_comptime8.patch add ex073 comptime 8 2021-04-26 20:01:54 -04:00
074_comptime9.patch add ex074 comptime 9 2021-04-30 20:25:59 -04:00
075_quiz8.patch Added ex075 Quiz 8 2021-04-30 21:35:56 -04:00
076_sentinels.patch Manually cleaned up patches/patches for issue #73 2022-03-19 21:10:44 -04:00
077_sentinels2.patch Fix 076, add 077,078 sentinels and many-item pointers 2021-05-08 18:51:08 -04:00
078_sentinels3.patch Fix 076, add 077,078 sentinels and many-item pointers 2021-05-08 18:51:08 -04:00
079_quoted_identifiers.patch Add ex079 quoted identifiers 2021-05-09 13:10:09 -04:00
080_anonymous_structs.patch Ex 080: Strip filename from @typeName output to address #130 2022-08-29 20:10:26 -04:00
081_anonymous_structs2.patch Manually cleaned up patches/patches for issue #73 2022-03-19 21:10:44 -04:00
082_anonymous_structs3.patch fixed patches 2023-01-21 17:03:40 +01:00
083_anonymous_lists.patch Ensure the exercises use the canonical format 2023-04-18 18:16:19 +02:00
084_async.patch no unusued vars 2021-06-30 19:55:47 -04:00
085_async2.patch add ex085 async 2 2021-05-12 21:04:58 -04:00
086_async3.patch add ex086 async 3 2021-05-12 21:25:48 -04:00
087_async4.patch change suspend; to suspend {} 2021-05-24 15:57:59 -04:00
088_async5.patch add ex088 async 5 await 2021-05-13 19:48:10 -04:00
089_async6.patch Add ex089 Async 6 2021-05-27 19:04:11 -04:00
090_async7.patch add ex090 async 7 2021-06-14 15:39:49 -04:00
091_async8.patch Added ex91 - closing in on async! 2021-11-07 20:51:33 -05:00
092_interfaces.patch Added story/explanation to new ex. 092 2023-02-15 17:45:10 -05:00
093_hello_c.patch check for dev1650 and some minor polish 2023-02-19 17:52:16 +01:00
094_c_math.patch added C math exercise 2023-02-18 23:39:21 +01:00
095_for_loops.patch exercise for new for-loops 2023-03-04 16:07:53 +01:00
096_memory_allocation.patch change empty init to '???' placeholder 2023-03-08 19:22:17 -05:00
097_bit_manipulation.patch added first exercise for bit manipulation 2023-04-12 15:47:20 +02:00
098_bit_manipulation2.patch added the second exercise for bit manipulation 2023-04-12 17:00:26 +02:00
999_the_end.patch try to fix mac error 2023-01-22 13:34:46 +01:00