hare

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

commit 799ecf63eb266fba41f4407b710c9d3daa5c14f2
parent 478972d0c9e8c0df357a9163553d1182126482bc
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat,  6 Feb 2021 15:18:16 -0500

Update stdlib

Diffstat:
Mgen-stdlib | 9+++++++--
Mmk/stdlib.mk | 15++++++++++++---
2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/gen-stdlib b/gen-stdlib @@ -97,7 +97,8 @@ bytes() { copy.ha \ equal.ha \ index.ha \ - reverse.ha + reverse.ha \ + tokenize.ha gen_ssa bytes } @@ -120,9 +121,11 @@ fmt() { gensrcs_strconv() { gen_srcs strconv \ + types.ha \ itos.ha \ utos.ha \ stou.ha \ + stoi.ha \ numeric.ha \ $* } @@ -172,7 +175,8 @@ strconv() { gensrcs_strconv else gensrcs_strconv \ - stou+test.ha + +test/stou.ha \ + +test/stoi.ha fi gen_ssa strconv types strings ascii } @@ -183,6 +187,7 @@ strings() { cstrings.ha \ dup.ha \ iter.ha \ + tokenize.ha \ utf8.ha gen_ssa strings encoding::utf8 types } diff --git a/mk/stdlib.mk b/mk/stdlib.mk @@ -99,7 +99,8 @@ stdlib_bytes_srcs= \ $(STDLIB)/bytes/copy.ha \ $(STDLIB)/bytes/equal.ha \ $(STDLIB)/bytes/index.ha \ - $(STDLIB)/bytes/reverse.ha + $(STDLIB)/bytes/reverse.ha \ + $(STDLIB)/bytes/tokenize.ha $(HARECACHE)/bytes/bytes.ssa: $(stdlib_bytes_srcs) $(stdlib_rt) @printf 'HAREC \t$@\n' @@ -162,9 +163,11 @@ $(HARECACHE)/os/os.ssa: $(stdlib_os_srcs) $(stdlib_rt) $(stdlib_strings) $(stdli # strconv stdlib_strconv_srcs= \ + $(STDLIB)/strconv/types.ha \ $(STDLIB)/strconv/itos.ha \ $(STDLIB)/strconv/utos.ha \ $(STDLIB)/strconv/stou.ha \ + $(STDLIB)/strconv/stoi.ha \ $(STDLIB)/strconv/numeric.ha $(HARECACHE)/strconv/strconv.ssa: $(stdlib_strconv_srcs) $(stdlib_rt) $(stdlib_types) $(stdlib_strings) $(stdlib_ascii) @@ -178,6 +181,7 @@ stdlib_strings_srcs= \ $(STDLIB)/strings/cstrings.ha \ $(STDLIB)/strings/dup.ha \ $(STDLIB)/strings/iter.ha \ + $(STDLIB)/strings/tokenize.ha \ $(STDLIB)/strings/utf8.ha $(HARECACHE)/strings/strings.ssa: $(stdlib_strings_srcs) $(stdlib_rt) $(stdlib_encoding_utf8) $(stdlib_types) @@ -297,7 +301,8 @@ testlib_bytes_srcs= \ $(STDLIB)/bytes/copy.ha \ $(STDLIB)/bytes/equal.ha \ $(STDLIB)/bytes/index.ha \ - $(STDLIB)/bytes/reverse.ha + $(STDLIB)/bytes/reverse.ha \ + $(STDLIB)/bytes/tokenize.ha $(TESTCACHE)/bytes/bytes.ssa: $(testlib_bytes_srcs) $(testlib_rt) @printf 'HAREC \t$@\n' @@ -361,11 +366,14 @@ $(TESTCACHE)/os/os.ssa: $(testlib_os_srcs) $(testlib_rt) $(testlib_strings) $(te # strconv testlib_strconv_srcs= \ + $(STDLIB)/strconv/types.ha \ $(STDLIB)/strconv/itos.ha \ $(STDLIB)/strconv/utos.ha \ $(STDLIB)/strconv/stou.ha \ + $(STDLIB)/strconv/stoi.ha \ $(STDLIB)/strconv/numeric.ha \ - $(STDLIB)/strconv/stou+test.ha + $(STDLIB)/strconv/+test/stou.ha \ + $(STDLIB)/strconv/+test/stoi.ha $(TESTCACHE)/strconv/strconv.ssa: $(testlib_strconv_srcs) $(testlib_rt) $(testlib_types) $(testlib_strings) $(testlib_ascii) @printf 'HAREC \t$@\n' @@ -378,6 +386,7 @@ testlib_strings_srcs= \ $(STDLIB)/strings/cstrings.ha \ $(STDLIB)/strings/dup.ha \ $(STDLIB)/strings/iter.ha \ + $(STDLIB)/strings/tokenize.ha \ $(STDLIB)/strings/utf8.ha $(TESTCACHE)/strings/strings.ssa: $(testlib_strings_srcs) $(testlib_rt) $(testlib_encoding_utf8) $(testlib_types)