1
0
mirror of https://github.com/janet-lang/janet synced 2025-04-20 09:43:15 +00:00

Commit Graph

  • 8810c65f00 Remove old namespace functions from stl. bakpakin 2017-07-09 15:14:18 -04:00
  • 891c550980 Invert recursion guard to count down instead of up. bakpakin 2017-07-09 13:31:30 -04:00
  • b19c834cf4 Change comment in gst.h bakpakin 2017-07-09 13:24:38 -04:00
  • 325059203d Correct behavior on 32 bit architecture when hashing pointers. bakpakin 2017-07-09 13:09:20 -04:00
  • eef8a42ae7 Remove tostring in favor of string. bakpakin 2017-07-03 22:20:39 -04:00
  • eeeb660120 Can only enter pending threads. bakpakin 2017-07-03 16:15:16 -04:00
  • 70efcc336b Move some string functions to a new file. bakpakin 2017-07-03 13:44:58 -04:00
  • c4dd17a35e Change some comments. bakpakin 2017-07-03 13:22:39 -04:00
  • 961275116f Add symbol function bakpakin 2017-07-03 11:21:10 -04:00
  • 0cf278994d Make coloring changes to the repl bakpakin 2017-07-02 20:51:52 -04:00
  • bfadf6ff12 Remove scratch memory functionality. bakpakin 2017-07-02 19:52:44 -04:00
  • 113c6cd6ad Add quoting with single quote bakpakin 2017-07-02 17:35:38 -04:00
  • 268bd5f954 Add keyword syntax for strings. bakpakin 2017-07-02 17:24:33 -04:00
  • e2c78b36d0 Add symbol type. bakpakin 2017-07-02 17:17:24 -04:00
  • 31ec1e9147 Add install and uninstall make targets. bakpakin 2017-07-02 14:56:31 -04:00
  • 7a9e991c41 Add color options to repl. bakpakin 2017-07-02 14:42:30 -04:00
  • db89a6c7ee Add description, short-description, and tostring as separate stringifiers that have slightly different semantics. description is for debugging, short-description is also for debugging but prints less, and tostring is for coercing to a string (similar to description, but strings are not changed and buffers return their contents as a string). bakpakin 2017-07-02 14:16:37 -04:00
  • 2742e3679d Change name of debugp to description. Use it the repl for easier inspection of structures. bakpakin 2017-07-02 11:53:51 -04:00
  • 62987de75b Update README.md bakpakin 2017-07-01 22:46:56 -04:00
  • 4a131fe47e Add some command line options to the client program. bakpakin 2017-07-01 22:34:31 -04:00
  • 3481ee5747 Whitespace bakpakin 2017-07-01 21:51:16 -04:00
  • 740367ec5c Add # comments to parser Calvin Rose 2017-07-01 12:47:57 -04:00
  • 171c0ce49e Allow yielding by transfering to nil Calvin Rose 2017-07-01 11:22:10 -04:00
  • 957a513fd6 More changes to threading model. Calvin Rose 2017-07-01 11:17:29 -04:00
  • c380f8a2ca Add OSX to travis. Calvin Rose 2017-06-29 22:01:50 -04:00
  • 21bd960865 Add more tests Reuse threads on gst_run when possible change name of getline to gst_getline Calvin Rose 2017-06-29 21:57:09 -04:00
  • 7e46ead2f4 Add new tests. Add recursion guard to compile, serialize, and deserialize. Calvin Rose 2017-06-28 22:51:24 -04:00
  • 9d66d85778 Add travis badge Calvin Rose 2017-06-25 19:56:17 -04:00
  • 092fd68935 Remove -Wpedantic Calvin Rose 2017-06-25 19:53:55 -04:00
  • b23fc136dd Remove readline and add travis Calvin Rose 2017-06-25 19:47:49 -04:00
  • a7a9ff7629 Add some extra functionality to tests. Calvin Rose 2017-06-25 19:29:38 -04:00
  • d6967a564d Fix bug in compiler Calvin Rose 2017-06-25 19:17:54 -04:00
  • 1f8b671488 Replace map of vars with single element arrays Calvin Rose 2017-06-25 16:52:15 -04:00
  • 29a39c47b0 Add var and def. Make them behave the same but have different implementations in top level scope in order to enable incremental compilation and repl. Calvin Rose 2017-06-25 16:36:20 -04:00
  • c3d65cb91d Remove lots of headers. Add parse c function. Calvin Rose 2017-06-24 14:27:29 -04:00
  • 70478a410b Add errorParent to threads. Calvin Rose 2017-06-19 23:01:34 -04:00
  • 6c597f6b5b Add bitwise operators Calvin Rose 2017-06-11 09:38:37 -04:00
  • a382c62db8 Make some changes to README.md with things to do. Calvin Rose 2017-06-10 17:44:02 -04:00
  • abbe6b13f1 Enable serialization of c functions. Calvin Rose 2017-06-03 11:26:17 -04:00
  • c422132208 Remove vscode subdirectory. Calvin Rose 2017-06-03 06:21:39 -04:00
  • f066047112 Fix serilaization bug. Still need to serialize c functions. Calvin Rose 2017-05-23 14:48:54 -04:00
  • 145688b49f More work on serializer. Calvin Rose 2017-05-12 00:03:00 -04:00
  • 58edb63607 More work on serilaization Calvin Rose 2017-05-11 21:30:18 -04:00
  • 6220b70105 More work in serialization Calvin Rose 2017-05-11 17:08:29 -04:00
  • b7083f6f18 More work on dogfood repl. Calvin Rose 2017-05-09 20:06:53 -04:00
  • fd72219a2a Add tran keyword to allow for continuations. Calvin Rose 2017-05-09 19:21:30 -04:00
  • 0e29b52d96 Add robinhood hashing to structs. This corrects changes in internal structure when values were inserted in different orders (which was previously incorrect.) Robinhood hashing should correct this by making the internal structure of the hashtable invariant of insertion order. This, in turn, allows naive and deterministic equality, comparison, and hashing of structs. Calvin Rose 2017-05-09 13:18:07 -04:00
  • 8aa99556e7 Begin adding support for multiple lightweight threads. Can be used to implement coroutines, error handling, and more. Calvin Rose 2017-05-08 17:07:16 -04:00
  • 6246c43e22 Fix integer division by 0 error. Calvin Rose 2017-05-08 12:08:48 -04:00
  • 4fd398ac97 Add simple example repl. Will eventually add support for error handling, macros and other compile time transformations. This will eventually become the full language. Calvin Rose 2017-05-08 11:03:06 -04:00
  • 058780085b Begin implementing a repl in gst Calvin Rose 2017-05-07 21:36:04 -04:00
  • 88a24531de Make reflective compilation less stateful Calvin Rose 2017-05-07 18:37:19 -04:00
  • 6d3e3d8246 Remove faulty quoting logic in parser. Calvin Rose 2017-05-07 18:20:11 -04:00
  • 96a605fbc0 Fix variadic functions. Calvin Rose 2017-05-07 16:48:35 -04:00
  • 7b83247c07 Add vararg support to compiler. Seems to be leak in parser. Calvin Rose 2017-05-06 17:46:28 -04:00
  • 6adc2a5268 More work on compiler. Start defining more dynamic module system than originally planned. Calvin Rose 2017-05-06 12:41:24 -04:00
  • d47ee18b1a Fix gc mark function in compiler. GNU readline is not valgrind clean or it is being used incorrectly. Calvin Rose 2017-05-05 23:33:36 -04:00
  • f817610d4a More work on compiler. Still has memory leak? Calvin Rose 2017-05-05 16:52:05 -04:00
  • 6ca5a76286 Fix a divide by 0 error when table is too small. Calvin Rose 2017-05-04 11:34:24 -04:00
  • bc82ce348a Fix regression where math ops didn't error. Calvin Rose 2017-05-03 20:35:39 -04:00
  • c6e9f24f82 Complete adding parser to scripting. Calvin Rose 2017-05-03 19:57:06 -04:00
  • 631bb0cb63 Change integer to string function Calvin Rose 2017-04-30 11:27:27 -04:00
  • 78cdf4b184 Add stdi and stdout to file io. Calvin Rose 2017-04-30 11:15:44 -04:00
  • 88138a16b3 Remove temp.txt Calvin Rose 2017-04-27 09:48:44 -04:00
  • 80f4f687d4 Merge branch 'master' of https://github.com/bakpakin/gst Calvin Rose 2017-04-27 09:48:12 -04:00
  • 29a54a35d7 Add more io functionality Calvin Rose 2017-04-27 09:46:26 -04:00
  • 9806546e1c Change some function names. bakpakin 2017-04-27 09:44:52 -04:00
  • bf2c16ccb0 Flesh out support for userdata Calvin Rose 2017-04-26 10:21:03 -04:00
  • d295e281e1 Add a little bit to README Calvin Rose 2017-04-25 18:22:43 -04:00
  • 14f8b12706 Use 32 bit unsigned integers for stackframes. Calvin Rose 2017-04-25 12:26:58 -04:00
  • 1d7f42ba01 Visual distinction between integers and reals. Add F suffix to real numbers when printed. bakpakin 2017-04-24 21:08:53 -04:00
  • 0a96e45c4a Change object to table type. bakpakin 2017-04-24 21:00:56 -04:00
  • c33d4da994 Fix bug with calling convention. Calvin Rose 2017-04-24 18:42:08 -04:00
  • 652b250718 Finish simple pretty printer in gst. Calvin Rose 2017-04-24 18:09:23 -04:00
  • a54548eaa0 Add 64 bit signed integers as a basic type. Will enable more native bitwise operations and c integration at the expense of complicating arithmetic. Calvin Rose 2017-04-24 16:02:54 -04:00
  • 81987dca45 More work. Calvin Rose 2017-04-24 13:12:55 -04:00
  • 5845434529 Add readline to repl for better experience Calvin Rose 2017-04-19 12:56:29 -04:00
  • fb3abf5a31 Add apply special form. TODO - make into function. Calvin Rose 2017-04-19 09:43:49 -04:00
  • 01e8749f39 Redo function call bytecode interface to be simpler and allow for an apply like structure in the language Calvin Rose 2017-04-19 09:02:12 -04:00
  • f4a6f4073f Rename some fuctions in util. Calvin Rose 2017-04-18 16:55:03 -04:00
  • ea432242d3 Add license header to all source files. Calvin Rose 2017-04-17 22:40:39 -04:00
  • 7a2ec82daf License Calvin Rose 2017-04-17 22:36:44 -04:00
  • baa3544ca0 Readd the repl. Calvin Rose 2017-04-17 22:14:35 -04:00
  • 6e71984fc5 Add wrapping functions for easy conversion between c api and internal values. Calvin Rose 2017-04-17 18:46:28 -04:00
  • f52e290206 Allow parser to parse files rather than just a repl. I think there are some memory leak issues (problems with gc). Calvin Rose 2017-04-17 00:15:18 -04:00
  • f456de5fac Change object implementaion to use open hashing. Currently using simple linear probing. Calvin Rose 2017-04-16 09:39:41 -04:00
  • e90b66af58 Add struct type. Calvin Rose 2017-04-15 16:05:59 -04:00
  • 20bb5a18f7 Remove symbol type in favor of only strings. Anticipate addition of struct type, which will be an immutable hashtable. Calvin Rose 2017-04-14 13:41:32 -04:00
  • e28e31f818 Begin implementing module system. Calvin Rose 2017-04-12 21:21:46 -04:00
  • ded3d06387 Use fewer special forms in c compiler. This should make the self hosted compiler easier to make. The C version of the compiler does not need to be efficient. Calvin Rose 2017-04-12 10:31:50 -04:00
  • a0d3600ac0 Fix gitignore Calvin Rose 2017-03-26 15:44:57 -04:00
  • ac50f6232e More work on cleaing up code. Calvin Rose 2017-03-26 11:47:58 -04:00
  • 6365a007b6 More work on cleaning up string implementation. Calvin Rose 2017-03-22 18:35:54 -04:00
  • 841ee3696d Add cache for strings. Calvin Rose 2017-03-22 00:27:18 -04:00
  • f6e26d9893 Work on serialization. Move clibs into core. Calvin Rose 2017-03-20 23:06:38 -04:00
  • 4c35ee0a2c Add first class symbol type. Calvin Rose 2017-03-19 17:29:25 -04:00
  • a2f3fa3b3d Work on deserialization for loading bytecode and other objects. Calvin Rose 2017-03-19 12:16:40 -04:00
  • 9856142fef Refactor code. Separate code into different modules to separate the minimum runtime from auxiliary functions. Change makefile to allow building static libraries. Calvin Rose 2017-03-15 20:56:37 -04:00
  • 91f2766dd0 Rename binary Calvin Rose 2017-03-15 01:27:56 -04:00
  • ba82ba414a Retabbed things Calvin Rose 2017-03-15 01:26:45 -04:00