hare

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

commit 8de8aabbbbce8bdc29f8a08ca017c6af31291cdc
parent fbf2c44024959c81f02489e099828a2ff2be373a
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun, 17 Apr 2022 19:58:45 -0400

hare::parse: fix imports

Removes unused imports, and updates scripts/gen-stdlib.

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/parse/+test/unit.ha | 2--
Mhare/parse/decl.ha | 1-
Mscripts/gen-stdlib | 6+++---
Mstdlib.mk | 4++--
4 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/hare/parse/+test/unit.ha b/hare/parse/+test/unit.ha @@ -5,11 +5,9 @@ // (c) 2021 Eyal Sawady <ecs@d2evs.net> // (c) 2022 Sebastian <sebastian@sebsite.pw> use bufio; -use fmt; use hare::ast; use hare::lex; use io::{mode}; -use io; use strings; fn import_eq(i1: ast::import, i2: ast::import) bool = { diff --git a/hare/parse/decl.ha b/hare/parse/decl.ha @@ -5,7 +5,6 @@ use ascii; use hare::ast; use hare::lex::{ltok}; use hare::lex; -use hare::unparse; use strings; fn attr_symbol(lexer: *lex::lexer) (str | error) = { diff --git a/scripts/gen-stdlib b/scripts/gen-stdlib @@ -718,7 +718,7 @@ hare_parse() { if [ $testing -eq 0 ] then gensrcs_hare_parse - gen_ssa hare::parse hare::ast hare::lex hare::unparse fmt + gen_ssa hare::parse ascii hare::ast hare::lex fmt strings else gensrcs_hare_parse \ +test/expr.ha \ @@ -727,8 +727,8 @@ hare_parse() { +test/roundtrip.ha \ +test/types.ha \ +test/unit.ha - gen_ssa hare::parse bufio fmt hare::ast hare::lex hare::unparse io \ - strings strio fmt + gen_ssa hare::parse ascii bufio hare::ast hare::lex \ + hare::unparse io strio fmt strings fi } diff --git a/stdlib.mk b/stdlib.mk @@ -1202,7 +1202,7 @@ stdlib_hare_parse_any_srcs= \ $(STDLIB)/hare/parse/type.ha \ $(STDLIB)/hare/parse/unit.ha -$(HARECACHE)/hare/parse/hare_parse-any.ssa: $(stdlib_hare_parse_any_srcs) $(stdlib_rt) $(stdlib_hare_ast_$(PLATFORM)) $(stdlib_hare_lex_$(PLATFORM)) $(stdlib_hare_unparse_$(PLATFORM)) $(stdlib_fmt_$(PLATFORM)) +$(HARECACHE)/hare/parse/hare_parse-any.ssa: $(stdlib_hare_parse_any_srcs) $(stdlib_rt) $(stdlib_ascii_$(PLATFORM)) $(stdlib_hare_ast_$(PLATFORM)) $(stdlib_hare_lex_$(PLATFORM)) $(stdlib_fmt_$(PLATFORM)) $(stdlib_strings_$(PLATFORM)) @printf 'HAREC \t$@\n' @mkdir -p $(HARECACHE)/hare/parse @HARECACHE=$(HARECACHE) $(HAREC) $(HAREFLAGS) -o $@ -Nhare::parse \ @@ -3238,7 +3238,7 @@ testlib_hare_parse_any_srcs= \ $(STDLIB)/hare/parse/+test/types.ha \ $(STDLIB)/hare/parse/+test/unit.ha -$(TESTCACHE)/hare/parse/hare_parse-any.ssa: $(testlib_hare_parse_any_srcs) $(testlib_rt) $(testlib_bufio_$(PLATFORM)) $(testlib_fmt_$(PLATFORM)) $(testlib_hare_ast_$(PLATFORM)) $(testlib_hare_lex_$(PLATFORM)) $(testlib_hare_unparse_$(PLATFORM)) $(testlib_io_$(PLATFORM)) $(testlib_strings_$(PLATFORM)) $(testlib_strio_$(PLATFORM)) $(testlib_fmt_$(PLATFORM)) +$(TESTCACHE)/hare/parse/hare_parse-any.ssa: $(testlib_hare_parse_any_srcs) $(testlib_rt) $(testlib_ascii_$(PLATFORM)) $(testlib_bufio_$(PLATFORM)) $(testlib_hare_ast_$(PLATFORM)) $(testlib_hare_lex_$(PLATFORM)) $(testlib_hare_unparse_$(PLATFORM)) $(testlib_io_$(PLATFORM)) $(testlib_strio_$(PLATFORM)) $(testlib_fmt_$(PLATFORM)) $(testlib_strings_$(PLATFORM)) @printf 'HAREC \t$@\n' @mkdir -p $(TESTCACHE)/hare/parse @HARECACHE=$(TESTCACHE) $(HAREC) $(TESTHAREFLAGS) -o $@ -Nhare::parse \