1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-23 15:00:27 +00:00
Commit Graph

4468 Commits

Author SHA1 Message Date
bakpakin
b305a7c9bb Add macros in compiler. 2018-01-28 15:29:47 -05:00
bakpakin
8fe9881187 More work on adding c functions. Added buffer literals again. 2018-01-27 15:15:09 -05:00
bakpakin
a15f62e4b2 Update README.md 2018-01-25 19:22:17 -05:00
bakpakin
2bd20c3cb3 Addition and subtraction inlining. 2018-01-25 18:49:08 -05:00
bakpakin
5460ff19bf Begin C Function specialization in the compiler. 2018-01-24 17:59:00 -05:00
bakpakin
aa68ef49f1 Remove transfer as a compiler special. Eventually
rely on function inlining for efficiency.
2018-01-21 17:29:48 -05:00
bakpakin
26c8145893 Move ast to core. Add symbol function to stl. 2018-01-21 17:08:11 -05:00
bakpakin
42a88de9e7 Add quick asm for adding apply and error to the stl. 2018-01-21 16:41:15 -05:00
bakpakin
911b0b15e8 Fix some bugs with inner closures. 2018-01-21 14:39:32 -05:00
bakpakin
d68eae9592 Add bytecode verification 2018-01-20 17:21:59 -05:00
bakpakin
065c4cfac1 Gitignore was ignore files. 2018-01-20 11:04:30 -05:00
bakpakin
1c529f3bb0 Oh travis 2018-01-20 10:57:01 -05:00
bakpakin
1d03316bee messing with cmake 2018-01-20 10:39:32 -05:00
bakpakin
30f62ca454 Major refactor and restructure. Add CMake for anticipated windows
support.
2018-01-19 16:43:19 -05:00
bakpakin
acb706ca3a Add self reference in closures without having to use vars. 2018-01-19 12:37:37 -05:00
bakpakin
0531866954 Redo parser as a FSM. Again. 2018-01-18 17:25:45 -05:00
bakpakin
8e6ed707e7 Make buffers print their contents. 2018-01-17 11:36:10 -05:00
bakpakin
5d5d88c5ad Add some more functions to stl. Fix integer hashing (doh). 2018-01-17 09:58:32 -05:00
bakpakin
d373d38aee Add context functions for more uniform interface 2018-01-16 23:18:45 -05:00
bakpakin
23196ff6a2 Fix scope issue in compiler. 2018-01-15 23:31:39 -05:00
bakpakin
6df88f225f More work on c library interface and io library. 2018-01-15 20:14:54 -05:00
bakpakin
3262316e60 Factor CFunction args into struct. 2018-01-14 12:10:45 -05:00
bakpakin
9291a4faf0 Make suit0 fully functional by adding push functoin to stl 2018-01-14 10:23:24 -05:00
bakpakin
f5b29b85ba Support question mark in symbol. 2018-01-14 10:17:18 -05:00
bakpakin
53c0d5757c Add untested code for loading dlls on windows. 2018-01-14 09:58:35 -05:00
bakpakin
4197f918a0 Preliminary support for loading c libraries. 2018-01-13 23:38:58 -05:00
bakpakin
5ec05136c7 Add metadata to global defs. 2018-01-13 16:14:40 -05:00
bakpakin
d9f24effac Fix compiler errors with upvalues. 2018-01-13 14:08:42 -05:00
bakpakin
94a4970053 Add underscore to repl 2018-01-13 10:34:59 -05:00
bakpakin
921f087c96 Remove useless file. 2018-01-12 19:23:36 -05:00
bakpakin
60b8f436f0 Proper order for libraries in Makefile. 2018-01-12 17:42:14 -05:00
bakpakin
efb5f19d27 Fix gcc errors 2018-01-12 17:38:06 -05:00
bakpakin
6679fb299f add -lm flag 2018-01-12 17:33:56 -05:00
bakpakin
59bed71a2c Make some unit tests pass. Fix transfer to new fiber. 2018-01-12 16:25:24 -05:00
bakpakin
f8174f192c Fix some vararg behavior in tail calls. 2018-01-12 13:54:37 -05:00
bakpakin
204caa6d8f Factor out language specials to separate files in compiler.
Add transfer special. */
2018-01-12 10:41:27 -05:00
bakpakin
c1fa521b58 Add buffer overflow detection to the buffer class
when the inherent 2GB limit is reached for a single buffer.
2018-01-06 13:25:45 -05:00
bakpakin
605848b217 Rename DstValue to Dst for easier access. Move vector.c into
util.c and make public API smaller. Pad strings and symbols with
extra 0 byte for better interop with C.
2018-01-06 11:09:15 -05:00
bakpakin
2771171658 Much work on compiler. Fixing bugs and gradually cleaning
up code. Generalized some vector code.
2018-01-05 16:17:55 -05:00
bakpakin
e4735e14d2 More compiler bug fixes. Added some features and functions like varargs. 2018-01-03 21:36:10 -05:00
bakpakin
f273aa8b1b Add vars, split up headers, remove fiber->ret, add comparators, etc. 2017-12-30 16:46:59 -05:00
bakpakin
34a83839f5 Add utf-8 compatibility in parser. Symbols can
be valid utf-8 strings
2017-12-20 23:03:34 -05:00
bakpakin
8eea6e2a70 minor changes. 2017-12-16 23:36:21 -05:00
bakpakin
01a95426b3 More work on compiler. Add compiler unit test that currently
segfaults alot. Added dst_disasm to reconstruct dsts assembly
from a funcdef.
2017-12-16 23:11:51 -05:00
bakpakin
2d781ef21b Compiler is coming along. Work on Slot system and general compiler strategy. 2017-12-16 01:17:53 -05:00
bakpakin
1293d2e301 Initial rewrite of compiler 2017-12-14 19:33:45 -05:00
bakpakin
a2ee6ffe5c New custom strtod implementation. 2017-12-08 15:57:02 -05:00
bakpakin
592e9495e4 Merge branch 'alpha' of https://github.com/bakpakin/gst into alpha 2017-12-03 12:52:36 -05:00
bakpakin
14fe30b411 Add preliminary source mapping to parser (always on) 2017-12-03 12:52:09 -05:00
Calvin Rose
114dda8294 Catch unitialized value valgrind error. Probably has no effect,
but fixed to shut up valgrind.
2017-11-29 15:33:27 -05:00