1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-11 09:10:27 +00:00

Commit Graph

  • 3a9b50ea4a Update peg doc and remame some peg specials. Calvin Rose 2019-01-14 22:17:13 -0500
  • 1304f9263b Update peg docs and make bad backrefs not error the whole pattern, but just cause the current match attempt to fail. Calvin Rose 2019-01-14 21:46:36 -0500
  • 90313afd40 Update PEG documentation and peg syntax. Disable tail calls in the root scope for better stacktraces, as the root scope may contain a single call to a failing function, as in the case of the test suite. Calvin Rose 2019-01-14 20:41:32 -0500
  • 99f176f37b Fix windows build warnings. Calvin Rose 2019-01-14 17:48:32 -0500
  • d0ec89c7c1 Update Matchtime captures to not include all of the matched text automatically, and fix pattern recursion in grammars. Calvin Rose 2019-01-14 17:44:21 -0500
  • 170e785b72 Fix recursion in grammars. Calvin Rose 2019-01-14 15:06:35 -0500
  • e53778d5d8 Remove annoying (fiber) text from stacktrace. Calvin Rose 2019-01-14 12:08:13 -0500
  • 192705113e Add Matchtime captures to peg (Equivalent to LPegs lpeg.Cmt). This allows that pattern to call an external function to check if some text should match or not. This allows for matching any possible language a computer can recognize. Calvin Rose 2019-01-14 11:45:45 -0500
  • 97a42ea17b Address some windows issues in buffer.c Calvin Rose 2019-01-14 00:12:25 -0500
  • 2cd489b9d4 Address windows build warnings. Calvin Rose 2019-01-14 00:09:27 -0500
  • ff0d3a0081 Compile pegs to bytecode with (peg/compile). Peg performance is improved, and peg syntax has been expanded with a few more keywords. Calvin Rose 2019-01-13 23:47:11 -0500
  • 282c02c475 Update comments and text. Calvin Rose 2019-01-12 20:22:03 -0500
  • 798c88b4c8 Update peg to allow functions over captures. Update C API to make janet function calls easier and faster from C (still needs an object pool for fibers, though). Fix bug in scan-number and add many more peg tests. Calvin Rose 2019-01-12 17:31:15 -0500
  • 83f4a11bf3 Add some more tests, add parameterized captures to patterns, and fix some bugs. Calvin Rose 2019-01-12 11:04:47 -0500
  • d7626f8c57 Add more capturing capabilities including substitutions, as well as back references for PEGs. More documentation is needed for PEG syntax, but the amount required will need an external document, not just a docstring. Calvin Rose 2019-01-12 10:16:25 -0500
  • 1efca2ebe7 Add some preliminary capturing ability to PEGs. Calvin Rose 2019-01-11 21:09:49 -0500
  • 40845b5c1b Initial peg implementation. Tree walk interpretted with no captures, so not yet ready. Calvin Rose 2019-01-11 19:22:24 -0500
  • 84fb07dd5a Add quiet option to main client. Calvin Rose 2019-01-10 17:10:12 -0500
  • 62cb3f81fe Fix sorting in asm.c. Add README text. Calvin Rose 2019-01-09 17:09:16 -0500
  • 16ebb11181 Add buffer/bit functions and buffer/blit. Expose janet_gethalfrange in the C api for less duplicated range checking code. Calvin Rose 2019-01-09 13:25:51 -0500
  • 115ed9cbb9 Move pretty printing to separate file pp.c Simplify string.c and remove janet_puts. Calvin Rose 2019-01-09 11:47:29 -0500
  • 3ae6f64de5 Fix popen bug. Calvin Rose 2019-01-08 21:42:16 -0500
  • ff3f7487a4 Add splice special form to grammar. Calvin Rose 2019-01-08 20:05:36 -0500
  • f0afb3c311 Update README to indicate how to get latest grammar file. Calvin Rose 2019-01-08 20:02:01 -0500
  • 5b1a3b8208 Make grammar tool completely generate grammar from scratch. Remove grammar from source tree. Calvin Rose 2019-01-08 19:59:54 -0500
  • b1e0849a2f Restore old status logic - (status checks in run_vm should be using the previous status, not the current which is always JANET_STATUS_ALIVE) Calvin Rose 2019-01-08 13:42:29 -0500
  • 67f26b7d72 Fix = should have been ==. Add some tests for vm type asserts. Calvin Rose 2019-01-08 12:21:11 -0500
  • d5bab72620 Add a test for making method calls keyword-oo Calvin Rose 2019-01-07 14:54:39 -0500
  • aa079e3145 Fix parser regression. Calvin Rose 2019-01-07 14:49:38 -0500
  • d64a57297d Update examples, add method like semantics to calling keywords. Calvin Rose 2019-01-07 14:47:47 -0500
  • be85196de8 Add callgrind task to Makefile. Unify some parser states. Calvin Rose 2019-01-06 21:49:24 -0500
  • eae4e0dede Add functionality that allows the set macro to take a tuple as an l-value. Remove the old multi-sym report in anticipation of a different mechanism. Calvin Rose 2019-01-06 19:33:27 -0500
  • 92e9e64945 Update CONTRIBUTING.md and make valtest Calvin Rose 2019-01-06 12:32:44 -0500
  • 63dd6d03f4 Fix english Calvin Rose 2019-01-06 12:05:40 -0500
  • 2a79d2e749 Remove check for function calls to enable all types, even nil. Now any value can be called as a function, usually looking itself up in an associative data structure. Calvin Rose 2019-01-06 11:56:40 -0500
  • 6f3bc3d577 Update copyright date, fix types, remove trailing whitespace. Calvin Rose 2019-01-06 03:23:03 -0500
  • ef5eed2c21 Add source location to doc macro. Calvin Rose 2019-01-06 02:05:15 -0500
  • 5865692401 Surround embedded documentation with a macro so it can be disabled in a future build. Calvin Rose 2019-01-06 01:49:56 -0500
  • b626e73d19 Add extra argument to (native) to allow for passing in custom environment to add stuff to. Calvin Rose 2019-01-05 23:37:10 -0500
  • b535c91ee1 Fix native module issue. Calvin Rose 2019-01-05 22:52:28 -0500
  • 7b28032f5c More explicit casts to please Microsoft compiler. Calvin Rose 2019-01-05 21:58:39 -0500
  • 0fdd404a71 Remove duplicate functionality in string.c Calvin Rose 2019-01-05 21:23:44 -0500
  • 1f98eff33a Fix compiler warnings on emscripten. Calvin Rose 2019-01-05 20:52:32 -0500
  • 338b31f5a2 Add janet_fixarity. Update emscripten source. Calvin Rose 2019-01-05 20:45:24 -0500
  • b60e3e302a Update C API to use friendlier functions rather than macros. Error handling is implemented with setjmp/longjmp so code can be more concise. This required a very large but straight forward refactor for all of the libraries. Calvin Rose 2019-01-05 20:09:03 -0500
  • 5b62c8e6db Better working panic implementation and more cleanup in main vm loop. Calvin Rose 2019-01-05 00:33:20 -0500
  • cd6a7793e8 WIP panic functionality. Calvin Rose 2019-01-04 23:20:34 -0500
  • 5afb00859a More cleanup in vm.c Calvin Rose 2019-01-04 21:15:37 -0500
  • 001917f8d9 Begin clean up of vm.c Calvin Rose 2019-01-04 20:08:43 -0500
  • b9c0fc8201 Allow calling keywords and symbols as functions to look themselves up in a data structure. Allow calling a data structure to look up the argument. Calvin Rose 2019-01-03 22:46:25 -0500
  • d8b0a5ed01 Make parser API more robust - the value queue is now distinct from the parse state, and is queried separately. Calvin Rose 2019-01-03 20:44:58 -0500
  • 5fa96a6f8c Add documentation on all of the special forms. Calvin Rose 2019-01-03 17:16:34 -0500
  • dd3fc24a1e Make number syntax a bit stricter - no leading underscores and no underscores in exponent. Calvin Rose 2019-01-03 12:13:14 -0500
  • ddba0010b0 Make test output less verbose. Calvin Rose 2019-01-02 23:06:23 -0500
  • 337a498edb Fix some keyword related issues. Calvin Rose 2019-01-02 22:08:51 -0500
  • 5fff36d047 Remove janet_symbol_from_string api function. Calvin Rose 2019-01-02 20:50:31 -0500
  • a679f60e07 Add assembly test. Calvin Rose 2019-01-02 19:58:27 -0500
  • 58d480539c Fix assembler labels after keyword update. Calvin Rose 2019-01-02 19:55:42 -0500
  • 6afaacf2af Update documentation on keywords. Calvin Rose 2019-01-02 19:46:24 -0500
  • e9c94598e6 Add native keyword type to replace symbols with leading ':' character. Calvin Rose 2019-01-02 19:41:07 -0500
  • 29ec30c79f Fix number parsing for bases between 2 and 9. Allow multisyms to have number keys. Calvin Rose 2019-01-02 16:39:24 -0500
  • 122312dbf6 Fix some typos and update comments. Calvin Rose 2019-01-02 12:21:59 -0500
  • 618f8d6818 Add with-syms and combine bignat_add and bignatr mul into a single operation for strtod.c Calvin Rose 2019-01-02 10:23:11 -0500
  • 0d4ab7dee0 Add some more test cases for bad arities. Calvin Rose 2018-12-30 18:44:00 -0500
  • 6b4824c2ab Fix error behavior when calling functions with incorrect arities. Calvin Rose 2018-12-30 18:41:44 -0500
  • 8dde89126e Fix -s flag in janet binary. Calvin Rose 2018-12-30 18:23:29 -0500
  • 56927e1b81 Fix -e option. Calvin Rose 2018-12-30 17:51:15 -0500
  • 9e6254bf56 Rename pre-walk and post-walk to prewalk and postwalk. Calvin Rose 2018-12-30 15:34:01 -0500
  • fe22a8db39 Fix 32 bit platforms janet number handling. Calvin Rose 2018-12-30 14:23:52 -0500
  • d724c5b959 Update number representation so that wrapping numbers isn't doesn't need to check for NaNs. Change ordering of types. Calvin Rose 2018-12-30 12:37:50 -0500
  • ca9c017ec4 Remove some unnecessary bounds checks. Calvin Rose 2018-12-29 20:07:56 -0500
  • 65be318306 Update grammar. Calvin Rose 2018-12-29 18:04:23 -0500
  • 7c4671d98f Update loop documentation. Calvin Rose 2018-12-29 17:42:44 -0500
  • 7880d73201 Add some documentation for looping and the loop macro. Also add :pairs verb to the loop macro and some more tests. Calvin Rose 2018-12-29 17:23:31 -0500
  • 00f0f628e8 Shrink gif some more. Calvin Rose 2018-12-29 13:21:13 -0500
  • 21b7583a7c Shrink image in README Calvin Rose 2018-12-29 13:20:13 -0500
  • 42c6aca526 Shrink gif. Calvin Rose 2018-12-29 13:17:45 -0500
  • 52b8781684 .. Calvin Rose 2018-12-29 13:14:59 -0500
  • 5d39570ec9 Update README.md Calvin Rose 2018-12-29 13:13:57 -0500
  • 28331ad6ab Update buffer/push-integer to buffer/push-word. Calvin Rose 2018-12-29 13:07:18 -0500
  • 129ec1e3c5 Don't use initialization syntax {0}. Calvin Rose 2018-12-29 12:02:51 -0500
  • bdcd3a3dbf Update strtod.c, cleaning up code. Rename Mant -> BigNat, fix multiply code so we can use 31 bits per digit. Calvin Rose 2018-12-29 11:29:20 -0500
  • 6c8f49206d Add some more number tests. Crossing fingers hoping windows will work. Calvin Rose 2018-12-29 01:31:01 -0500
  • b06f7226c4 Add number test. Calvin Rose 2018-12-29 01:16:54 -0500
  • 2bcedd5920 Remove indexing with numeric constants from janet. Calvin Rose 2018-12-28 23:44:39 -0500
  • 5c84f0f5d9 Work on number code for more expected behavior and better rounding. Still needs work and testing. Calvin Rose 2018-12-28 23:32:09 -0500
  • 424073bbb8 Update cook tool to not rebuild files unless it needs to. Calvin Rose 2018-12-27 14:13:10 -0500
  • e9a80d4e4a Bump version, fix doc and typos, update grammar. Calvin Rose 2018-12-27 13:36:27 -0500
  • 1ec7f04642 Avoid warning in asm.c on windows. Calvin Rose 2018-12-27 13:19:16 -0500
  • 59f6c335ad Update documentation to remove references of integers and real numbers. Now there is only one kind of number. no-int Calvin Rose 2018-12-27 13:13:02 -0500
  • 6b95326d7c First commit removing the integer number type. This should remove some complexity and unexpected behavior around numbers in general as all numbers are the same number type, IEEE 754 double precision numbers. Also update examples and tests, some of which were out of date. Calvin Rose 2018-12-27 13:05:29 -0500
  • 5a3190d471 Update cook tool to allow embedding sources. Calvin Rose 2018-12-26 22:40:19 -0500
  • e7a8958c63 Move grammar helper to tools directory. Calvin Rose 2018-12-25 17:38:54 -0500
  • 017ee2b0d1 Move gendoc.janet script. Calvin Rose 2018-12-25 17:37:52 -0500
  • a7933f5f08 Move janet natives to new repos. Calvin Rose 2018-12-25 17:33:35 -0500
  • be7fc79b6f Update README to refer to janet-lang/janet repository. Calvin Rose 2018-12-25 15:45:18 -0500
  • 6c8da9fe5c Install cook tool when installing janet. Calvin Rose 2018-12-25 15:39:24 -0500
  • 17283241ab Fix bug in compiler with if form under certain conditions. Begin bundled 'cook' tool for managing janet projects. Calvin Rose 2018-12-25 15:32:42 -0500
  • 2c94aa1a6a Update min fiber size. 0.2.0 Calvin Rose 2018-12-23 23:38:49 -0500
  • e5d2752329 Update grammar file. Calvin Rose 2018-12-23 19:11:33 -0500