mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Add janet logo,mMove some lib files to example.
This commit is contained in:
parent
c971d8ab6e
commit
34a69d0318
19
Makefile
19
Makefile
@ -149,18 +149,6 @@ valtest: $(JANET_TARGET) $(TEST_PROGRAMS)
|
|||||||
for f in build/*.out; do $(VALGRIND_COMMAND) "$$f" || exit; done
|
for f in build/*.out; do $(VALGRIND_COMMAND) "$$f" || exit; done
|
||||||
for f in test/*.janet; do $(VALGRIND_COMMAND) ./$(JANET_TARGET) "$$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 #####
|
##### Distribution #####
|
||||||
########################
|
########################
|
||||||
@ -189,16 +177,11 @@ install: $(JANET_TARGET)
|
|||||||
mandb
|
mandb
|
||||||
$(LDCONFIG)
|
$(LDCONFIG)
|
||||||
|
|
||||||
install-libs: natives
|
|
||||||
mkdir -p $(JANET_PATH)
|
|
||||||
cp -r lib $(JANET_PATH)
|
|
||||||
cp natives/*/*.so $(JANET_PATH)
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
-rm $(BINDIR)/../$(JANET_TARGET)
|
-rm $(BINDIR)/../$(JANET_TARGET)
|
||||||
-rm $(LIBDIR)/../$(JANET_LIBRARY)
|
-rm $(LIBDIR)/../$(JANET_LIBRARY)
|
||||||
-rm -rf $(INCLUDEDIR)
|
-rm -rf $(INCLUDEDIR)
|
||||||
$(LDCONFIG)
|
$(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)
|
$(TEST_PROGRAM_PHONIES) $(TEST_PROGRAM_VALPHONIES)
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
[![Build Status](https://travis-ci.org/bakpakin/janet.svg?branch=master)](https://travis-ci.org/bakpakin/janet)
|
[![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)
|
[![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
|
Janet is a functional and imperative programming language and bytecode interpreter. It is a
|
||||||
modern lisp, but lists are replaced
|
modern lisp, but lists are replaced
|
||||||
by other data structures with better utility and performance (arrays, tables, structs, tuples).
|
by other data structures with better utility and performance (arrays, tables, structs, tuples).
|
||||||
|
BIN
assets/janet-big.png
Normal file
BIN
assets/janet-big.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
@ -22,8 +22,8 @@
|
|||||||
(:= ,state (do ;forms)))))))
|
(:= ,state (do ;forms)))))))
|
||||||
|
|
||||||
# Use tuples instead of structs to save memory
|
# Use tuples instead of structs to save memory
|
||||||
(def HEAD :private 0)
|
(def- HEAD 0)
|
||||||
(def TAIL :private 1)
|
(def- TAIL 1)
|
||||||
|
|
||||||
(defn empty-seq
|
(defn empty-seq
|
||||||
"The empty sequence."
|
"The empty sequence."
|
@ -588,7 +588,7 @@ static int json_encode(JanetArgs args) {
|
|||||||
|
|
||||||
static const JanetReg cfuns[] = {
|
static const JanetReg cfuns[] = {
|
||||||
{"encode", json_encode,
|
{"encode", json_encode,
|
||||||
"(json/encode x)\n\n"
|
"(json/encode x [,tab [,newline]])\n\n"
|
||||||
"Encodes a janet value in JSON (utf-8)."
|
"Encodes a janet value in JSON (utf-8)."
|
||||||
},
|
},
|
||||||
{"decode", json_decode,
|
{"decode", json_decode,
|
||||||
|
Loading…
Reference in New Issue
Block a user