914 Commits (165cc199ca4d88fbc58c2662d8e588cba597b19d)
 

Author SHA1 Message Date
Chris Boesch ac1d003f1e Upgrade to Zig version 4246 1 year ago
Chris Boesch 5865ed5f2e Merge pull request #340 from nchataing/fix-main-build
fix: main entry point is broken with version 0.11.0-dev.4228
1 year ago
Nicolas Chataing 51a88cccf7 fix: main entry point is broken with version 0.11.0-dev.4228 1 year ago
Chris Boesch 477f18ebfc Merge pull request #337 from kimshrier/exercise_096_typo
fix typo
1 year ago
Kim SHrier db653d29ee fix typo 1 year ago
Chris Boesch e142d40fb0 Update 078_sentinels3.zig
Changed description of @ptrCast
closes https://github.com/ratfactor/ziglings/issues/334
1 year ago
Chris Boesch bddff7a0a6 Version updated 1 year ago
Chris Boesch 1070fe5b40 Merge pull request #333 from ratfactor/v3853
Revised exercises due to the changes of Zig version 0.11.0-dev.3853
1 year ago
Chris Boesch 7ad0f06a07 Compatibility checks temporarily disabled (2) 1 year ago
Chris Boesch 496953e9a8 Compatibility checks temporarily disabled 1 year ago
Chris Boesch d864860201 Unit tests temporarily disabled 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 c3aed336e7 Merge pull request #331 from ratfactor/tokenization
First tokenization exerice
1 year ago
Chris Boesch a2b0b976a6 First tokenization exerice. 1 year ago
Chris Boesch 2705e16c36 Merge pull request #329 from lorrding/refactor-var-to-const
Change `var` to `const` in some exercises
1 year ago
lording d52f360731 Update outdated comments 1 year ago
lording 3e502fe69b Merge branch 'main' into refactor-var-to-const 1 year ago
Chris Boesch 9499e12469 Merge pull request #328 from ratfactor/v3747
Changed to zig developer version 3747
1 year ago
lording d2d3dfa277 var to const when posssible 1 year ago
Chris Boesch bd4a48c3c9 Changed to zig developer version 3747. 1 year ago
Chris Boesch 40bedacfdf Merge pull request #327 from lorrding/patch_v0.11.0-dev.3747
Fix breaking change in builtin casts functions
1 year ago
lording ccb580f95d Fix broken builtin name in exercise 96 1 year ago
lording 39952817b3 Fix broken builtin name in exercise 36 1 year ago
Chris Boesch f09a87c348 Merge pull request #325 from ckafi/what-a-dilema
fix typo
1 year ago
Tobias Frilling 5984444489 fix typo 1 year ago
Chris Boesch 9c9671bb15 Merge pull request #323 from ratfactor/issue318
Issue318
1 year ago
Chris Boesch 2815574e35 Removed debug info. 1 year ago
Chris Boesch 7a16ed09ac Fixed missing comptime. 1 year ago
Chris Boesch cac5770e3c Merge pull request #321 from ratfactor/issue317
Fixed description of @addWithOverflow
1 year ago
Chris Boesch 33d3cc1647 Fixed description of @addWithOverflow 1 year ago
Chris Boesch 80c92e3c94 closes https://github.com/ratfactor/ziglings/pull/311 1 year ago
Chris Boesch 947d1e4fbb Update README.md
Added Tokenization as ToDo
1 year ago
Chris Boesch 79f2b62774 Merge pull request #313 from chrboesch/colors
Changed error text to bold.
1 year ago
Chris Boesch 9151557d39 Changed error text to bold. 1 year ago
Chris Boesch b84a2f5c69 Merge pull request #312 from pdietl/pdietl/fix_grammar
Change grammar: there's -> there are ex. 17
1 year ago
Chris Boesch 940482a07e Merge pull request #308 from perillo/refactor-zigling-step-more
Refactor ZiglingStep more
1 year ago
Pete Dietl edcf904ca2 Change grammar: there's -> there are ex. 17 1 year ago
Chris Boesch 1482b82500 changed version number 1 year ago
Chris Boesch 763cdb10ca Merge pull request #309 from pseudocc/main
change std.debug.TTY to std.io.tty
1 year ago
pseudoc 192bd2e803 change std.debug.TTY to std.io.tty
Zig commit:     0f6fa3f20b3b28958921bd63a9a9d96468455e9c

std: Move std.debug.{TTY.Config,detectTTYConfig} to std.io.tty

Also get rid of the TTY wrapper struct, which was exlusively used as a
namespace - this is done by the tty.zig root struct now.

detectTTYConfig has been renamed to just detectConfig, which is enough
given the new namespace. Additionally, a doc comment had been added.
1 year ago
Manlio Perillo 0b4ad6e99e build: use the old color style
In the `Zigling.printError` method, use a bold red color for the "error:"
string and a dim red color for the error message.

In the `Zigling.check_output` method, use the old color style.
1 year ago
Manlio Perillo 3e38a4fc84 build: in `ZiglingStep.check_output` panic in case of OOM
This is necessary since, when trimLines returns `std.mem.Allocator.Error`,
no error message will be displayed to the user.

An alternative is to use `std.Build.Step.fail`, but using @panic("OOM")
is simpler and consistent with existing code.
1 year ago
Manlio Perillo d0de9e5348 build: use `std.Build.Step.fail` to report errors
Have all error messages handled in a single place (printError), by using
the `std.Build.Step.fail` method.  Ensure that the first letter in the
error message is lower case and remove coloring, since it is done in the
`ZiglingStep.printError` method.

Additionally, in the `ZiglingStep.check_test` method, remove trailing
whitespace from stderr.
1 year ago
Manlio Perillo 699f877bd5 build: remove `ZiglingStep.eval`
Remove the `ZiglingStep.eval` method and the src/ipc.zig source code.
Use `Step.evalZigProcess`, instead. This greatly simplifies the code.

Print the error messages and error bundle in `ZiglingStep.make`, both in
case of error and success.

Additionally, remove the `ZiglingStep.is_testing` field, since it is no
longer necessary.
1 year ago
Chris Boesch 282c50834a Merge pull request #305 from perillo/improve-run-test
Improve running tests
1 year ago
Manlio Perillo 54d5186982 Enable again the unit tests 1 year ago
Manlio Perillo 9ab9ebf33f Refactor testing support
Following the implementation in `std.Build.Step.Compile, add the Kind
type to differentiate between a normal executable and a test executable
running zig tests.  Replace `Exercise.run_test` field with `kind`.

Compile the exercise in both the exe and test cases, reducing code
duplication.

Add the `check_output` and `check_test` methods in ZiglingStep, in order
to differentiate the code checking a normal executable and a test
executable.

Update the tests to correctly check both the exe and test cases.  Remove
the temporary code added in commit 832772c.
1 year ago
Chris Boesch 3dafa3518b Update README.md
Marked 'testing' as finished.
1 year ago
Chris Boesch 5cbaa0441f Merge pull request #304 from chrboesch/testing_exercise
Added testing exercise.
1 year ago
Chris Boesch 76ee4eb043 Unit tests temporarily disabled. 1 year ago