Rename 'nextlang'->'tomo'
This commit is contained in:
parent
dbad340c29
commit
c2228bf986
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
*.o
|
*.o
|
||||||
*.so
|
*.so
|
||||||
nextlang
|
tomo
|
||||||
tags
|
tags
|
||||||
|
14
Makefile
14
Makefile
@ -26,12 +26,12 @@ LDLIBS=-lgc -lgccjit -lcord -lm -lunistring
|
|||||||
BUILTIN_OBJS=builtins/array.o builtins/bool.o builtins/color.o builtins/nums.o builtins/functions.o builtins/integers.o \
|
BUILTIN_OBJS=builtins/array.o builtins/bool.o builtins/color.o builtins/nums.o builtins/functions.o builtins/integers.o \
|
||||||
builtins/pointer.o builtins/memory.o builtins/string.o builtins/table.o builtins/types.o
|
builtins/pointer.o builtins/memory.o builtins/string.o builtins/table.o builtins/types.o
|
||||||
|
|
||||||
all: libnext.so nextlang
|
all: libtomo.so tomo
|
||||||
|
|
||||||
nextlang: nextlang.c SipHash/halfsiphash.o util.o files.o ast.o parse.o environment.o types.o typecheck.o structs.o enums.o compile.o $(BUILTIN_OBJS)
|
tomo: tomo.c SipHash/halfsiphash.o util.o files.o ast.o parse.o environment.o types.o typecheck.o structs.o enums.o compile.o $(BUILTIN_OBJS)
|
||||||
|
|
||||||
libnext.so: util.o files.o $(BUILTIN_OBJS) SipHash/halfsiphash.o
|
libtomo.so: util.o files.o $(BUILTIN_OBJS) SipHash/halfsiphash.o
|
||||||
$(CC) $^ $(CFLAGS) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS) $(LDLIBS) -Wl,-soname,libnext.so -shared -o $@
|
$(CC) $^ $(CFLAGS) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS) $(LDLIBS) -Wl,-soname,libtomo.so -shared -o $@
|
||||||
|
|
||||||
SipHash/halfsiphash.c:
|
SipHash/halfsiphash.c:
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
@ -39,11 +39,11 @@ SipHash/halfsiphash.c:
|
|||||||
tags:
|
tags:
|
||||||
ctags *.[ch] **/*.[ch]
|
ctags *.[ch] **/*.[ch]
|
||||||
|
|
||||||
test: nextlang
|
test: tomo
|
||||||
for f in test/*; do echo -e "\x1b[1;4m$$f\x1b[m"; VERBOSE=0 CC=tcc ./nextlang "$$f" || break; done
|
for f in test/*; do echo -e "\x1b[1;4m$$f\x1b[m"; VERBOSE=0 CC=tcc ./tomo "$$f" || break; done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f nextlang *.o SipHash/halfsiphash.o builtins/*.o libnext.so
|
rm -f tomo *.o SipHash/halfsiphash.o builtins/*.o libtomo.so
|
||||||
|
|
||||||
%.1: %.1.md
|
%.1: %.1.md
|
||||||
pandoc --lua-filter=.pandoc/bold-code.lua -s $< -t man -o $@
|
pandoc --lua-filter=.pandoc/bold-code.lua -s $< -t man -o $@
|
||||||
|
10
README.md
Normal file
10
README.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Tomo - Tomorrow's Language
|
||||||
|
|
||||||
|
Tomo is a programming language designed to anticipate and influence the
|
||||||
|
language design decisions of the future.
|
||||||
|
|
||||||
|
```
|
||||||
|
say("Hello world!")
|
||||||
|
```
|
||||||
|
|
||||||
|
Check out the [test/](test/) folder to see some examples.
|
@ -950,7 +950,7 @@ CORD compile_type_info(env_t *env, type_t *t)
|
|||||||
module_code_t compile_file(ast_t *ast)
|
module_code_t compile_file(ast_t *ast)
|
||||||
{
|
{
|
||||||
env_t *env = new_compilation_unit();
|
env_t *env = new_compilation_unit();
|
||||||
CORD_appendf(&env->code->imports, "#include \"nextlang.h\"\n");
|
CORD_appendf(&env->code->imports, "#include \"tomo.h\"\n");
|
||||||
|
|
||||||
for (ast_list_t *stmt = Match(ast, Block)->statements; stmt; stmt = stmt->next) {
|
for (ast_list_t *stmt = Match(ast, Block)->statements; stmt; stmt = stmt->next) {
|
||||||
bind_statement(env, stmt->ast);
|
bind_statement(env, stmt->ast);
|
||||||
|
@ -73,7 +73,7 @@ int main(int argc, char *argv[])
|
|||||||
if (!cflags)
|
if (!cflags)
|
||||||
cflags = "-std=c11 -fdollars-in-identifiers -fsanitize=signed-integer-overflow -fno-sanitize-recover";
|
cflags = "-std=c11 -fdollars-in-identifiers -fsanitize=signed-integer-overflow -fno-sanitize-recover";
|
||||||
|
|
||||||
const char *ldlibs = "-lgc -lcord -lm -L. -lnext";
|
const char *ldlibs = "-lgc -lcord -lm -L. -ltomo";
|
||||||
if (getenv("LDLIBS"))
|
if (getenv("LDLIBS"))
|
||||||
ldlibs = heap_strf("%s %s", ldlibs, getenv("LDLIBS"));
|
ldlibs = heap_strf("%s %s", ldlibs, getenv("LDLIBS"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user