hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 16161f396538042ad18382a8206bc80292775880
parent 89e0725c09f981762fb6da154b5ab40f7698b0fb
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 31 Jan 2021 16:11:59 -0500

main.ha: simplify following grammar changes

Diffstat:
Mmain.ha | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/main.ha b/main.ha @@ -5,13 +5,9 @@ export fn main() void = { let buf: [1024]u8 = [0u8...]; for (true) { match (io::read(os::stdin, buf[..])) { - err: io::error => { - match (err) { - err: io::closed => { - break; - }, - * => abort(), - }; + err: io::error => match (err) { + err: io::closed => break, + * => abort(), }, n: size => io::write(os::stdout, buf[..n]), };