1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 09:17:17 +00:00

Add janet logo,mMove some lib files to example.

This commit is contained in:
Calvin Rose 2018-12-11 18:06:10 -05:00
parent c971d8ab6e
commit 34a69d0318
6 changed files with 6 additions and 21 deletions

View File

@ -149,18 +149,6 @@ valtest: $(JANET_TARGET) $(TEST_PROGRAMS)
for f in build/*.out; do $(VALGRIND_COMMAND) "$$f" || exit; done
for f in test/*.janet; do $(VALGRIND_COMMAND) ./$(JANET_TARGET) "$$f" || exit; done
###################
##### Natives #####
###################
natives: $(JANET_TARGET)
$(MAKE) -C natives/json
$(MAKE) -j 8 -C natives/sqlite3
clean-natives:
$(MAKE) -C natives/json clean
$(MAKE) -C natives/sqlite3 clean
########################
##### Distribution #####
########################
@ -189,16 +177,11 @@ install: $(JANET_TARGET)
mandb
$(LDCONFIG)
install-libs: natives
mkdir -p $(JANET_PATH)
cp -r lib $(JANET_PATH)
cp natives/*/*.so $(JANET_PATH)
uninstall:
-rm $(BINDIR)/../$(JANET_TARGET)
-rm $(LIBDIR)/../$(JANET_LIBRARY)
-rm -rf $(INCLUDEDIR)
$(LDCONFIG)
.PHONY: clean install repl debug valgrind test valtest emscripten dist install uninstall \
.PHONY: clean install repl debug valgrind test valtest emscripten dist uninstall \
$(TEST_PROGRAM_PHONIES) $(TEST_PROGRAM_VALPHONIES)

View File

@ -3,6 +3,8 @@
[![Build Status](https://travis-ci.org/bakpakin/janet.svg?branch=master)](https://travis-ci.org/bakpakin/janet)
[![Appveyor Status](https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true)](https://ci.appveyor.com/project/bakpakin/janet)
![Janet Logo](https://raw.githubusercontent.com/bakpakin/janet/master/assets/janet-big.png)
Janet is a functional and imperative programming language and bytecode interpreter. It is a
modern lisp, but lists are replaced
by other data structures with better utility and performance (arrays, tables, structs, tuples).

BIN
assets/janet-big.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -22,8 +22,8 @@
(:= ,state (do ;forms)))))))
# Use tuples instead of structs to save memory
(def HEAD :private 0)
(def TAIL :private 1)
(def- HEAD 0)
(def- TAIL 1)
(defn empty-seq
"The empty sequence."

View File

@ -588,7 +588,7 @@ static int json_encode(JanetArgs args) {
static const JanetReg cfuns[] = {
{"encode", json_encode,
"(json/encode x)\n\n"
"(json/encode x [,tab [,newline]])\n\n"
"Encodes a janet value in JSON (utf-8)."
},
{"decode", json_decode,