hare

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

commit e1c17165078a0b78ebd4c822349def8578e85de6
parent 055a7e16b9ee6efcfae7b23e8050c1ae33913ce6
Author: Andri Yngvason <andri@yngvason.is>
Date:   Sun,  7 Feb 2021 13:00:12 +0000

gen-stdlib: add strings::sub

Diffstat:
Mgen-stdlib | 3++-
Mmk/stdlib.mk | 6++++--
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/gen-stdlib b/gen-stdlib @@ -188,7 +188,8 @@ strings() { dup.ha \ iter.ha \ tokenize.ha \ - utf8.ha + utf8.ha \ + sub.ha gen_ssa strings encoding::utf8 types } diff --git a/mk/stdlib.mk b/mk/stdlib.mk @@ -182,7 +182,8 @@ stdlib_strings_srcs= \ $(STDLIB)/strings/dup.ha \ $(STDLIB)/strings/iter.ha \ $(STDLIB)/strings/tokenize.ha \ - $(STDLIB)/strings/utf8.ha + $(STDLIB)/strings/utf8.ha \ + $(STDLIB)/strings/sub.ha $(HARECACHE)/strings/strings.ssa: $(stdlib_strings_srcs) $(stdlib_rt) $(stdlib_encoding_utf8) $(stdlib_types) @printf 'HAREC \t$@\n' @@ -387,7 +388,8 @@ testlib_strings_srcs= \ $(STDLIB)/strings/dup.ha \ $(STDLIB)/strings/iter.ha \ $(STDLIB)/strings/tokenize.ha \ - $(STDLIB)/strings/utf8.ha + $(STDLIB)/strings/utf8.ha \ + $(STDLIB)/strings/sub.ha $(TESTCACHE)/strings/strings.ssa: $(testlib_strings_srcs) $(testlib_rt) $(testlib_encoding_utf8) $(testlib_types) @printf 'HAREC \t$@\n'