Chris Boesch
6984345d0a
Added threading exercise
8 months ago
Chris Boesch
9e48c9a339
Added notes to exercise 94 c_math.
8 months ago
Chris Boesch
b0511bb3c7
Fixed patch hunk
11 months ago
Chris Boesch
7679f93f68
Converted var to const if there is no mutation in var.
...
This is checked from compiler version 0.12.0-dev.1664
11 months ago
Chris Boesch
55b58fea56
Change the task so that the exercise contains two errors again.
12 months ago
Chris Boesch
2feeb282a9
fixed typos
1 year ago
Chris Boesch
5d3ff86a42
changed tokenize to tokenizeAny
1 year ago
Chris Boesch
e6e78d3f80
fixed broken patch 103
1 year ago
Chris Boesch
7491e3df91
changed the patch files that we can also use them with busybox for testing in Woodpecker
1 year ago
Chris Boesch
afee8d9c7a
added woodpecker integration
1 year ago
Chris Boesch
b749cba652
Fixed some broken patches
1 year ago
Juergen Hoetzel
8c2202c73d
Add example for Unicode Code point literal > 255
...
Only Basic Latin and Latin-1 Supplement code points fit into a single
byte.
1 year ago
Chris Boesch
4eb949759b
changed struct name 'class' into 'role'
1 year ago
Chris Boesch
5a0681948b
changed struct name 'class' into 'role'
1 year ago
Chris Boesch
a5a36337e8
Revised exercises due to the changes of Zig version 0.11.0-dev.3853
1 year ago
Chris Boesch
a2b0b976a6
First tokenization exerice.
1 year ago
lording
3e502fe69b
Merge branch 'main' into refactor-var-to-const
1 year ago
lording
d2d3dfa277
var to const when posssible
1 year ago
lording
39952817b3
Fix broken builtin name in exercise 36
1 year ago
Chris Boesch
33d3cc1647
Fixed description of @addWithOverflow
1 year ago
Chris Boesch
c3a73b8e2b
Added testing exercise.
1 year ago
Dave Gauer
e2f3a5e519
Added Ex 101 "for loops part 5" ( Closes #271 )
...
Also gave a shot at explaining data-oriented design, a Zig "hot
topic" ever since the red Hawaiian shirt talk(s).
1 year ago
Dave Gauer
2e2924abdb
Added Ex. 100 fourth for (as foretold in #261 )
2 years ago
Dave Gauer
bef099fee6
Renamed 095 to "for3" to match feature sequence
...
So 100 will be the next in line.
2 years ago
Dave Gauer
fd10ff8bb3
Updating 095 patch to match, natch!
2 years ago
Manlio Perillo
0dc6b45770
eowyn.sh: remove checking formatting one file at a time
...
This avoids unnecessary output.
Also remove the comment, since the message to stdout makes it
unnecessary.
2 years ago
Chris Boesch
f69cfc3b88
Version number added.
2 years ago
Chris Boesch
0ac3646e9c
Added a loop for the formatting test, so we can see where errors happen.
2 years ago
Manlio Perillo
fd6f3eebbb
eowyn.sh: set the -e option
...
Currently, `zig fmt` exit status is ignored, making it useless.
Ensure that the script terminates early if there is an error.
Print a message to stdout before executing `zig fmt`, in order to make
the possible error more visible.
2 years ago
Manlio Perillo
4b58de26d3
eowyn: always quote variables
...
Quote all the variables, even though we know that it is safe.
Fix coding style.
2 years ago
Dave Gauer
42c430a0c0
Ex 099 format instructions to 65 columns, wording, examples
2 years ago
Chris Boesch
4435cebe7a
Merge pull request #247 from chrboesch/formatting
...
added first formatting exercise
2 years ago
Chris Boesch
d6d30934db
added first formatting exercise
2 years ago
Manlio Perillo
c7697a4282
Ensure the patches are up-to-date and consistent
...
Add the update-patches.py tool.
Update all the patches, so that the files are up-to-date and use the
same patch file format.
2 years ago
Manlio Perillo
7d7be0482c
eowyn: run `zig fmt --check` before `zig build`
...
Update the eowyn.sh script to check the healed exercises formatting,
before running `zig build`.
2 years ago
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.
2 years ago
Chris Boesch
9f48d84ac8
added the second exercise for bit manipulation
2 years ago
Chris Boesch
299418c314
added first exercise for bit manipulation
2 years ago
Chris Boesch
b16cd86906
function made more elegant
2 years ago
Sean Aubin
be87134397
change empty init to '???' placeholder
2 years ago
Sean Aubin
484822a8da
rename memory allocation 095 -> 096
2 years ago
Sean Aubin
a218425ee5
add 095_memory_allocation.patch
2 years ago
Chris Boesch
101151f3f1
exercise for new for-loops
2 years ago
Chris Boesch
e7326dc5f9
dev.1711 - switched to multi-object-for-loops
2 years ago
Chris Boesch
1d10a062e2
check for dev1650 and some minor polish
2 years ago
Chris Boesch
84f4b4a9c7
small improvements in hello_c
2 years ago
Chris Boesch
23f2cc88d2
added C math exercise
2 years ago
Chris Boesch
bb95625477
try 'write' that works on mac, but I didn't know if it works on windows
2 years ago
Chris Boesch
dce731a0ec
Merge branch 'main' into hello_c
2 years ago
Chris Boesch
9693860bc0
inserted a workaround for mac-os, see https://github.com/ziglang/zig/issues/14657#issuecomment-1432180967
2 years ago