1
0
mirror of https://github.com/janet-lang/janet synced 2026-05-15 18:02:16 +00:00

Commit Graph

  • 5bf9e4fc89 Make amalg tool windows friendly Calvin Rose 2019-01-26 17:17:56 -05:00
  • 7350bf5dd9 Add anchors in generated docs Calvin Rose 2019-01-26 10:12:33 -05:00
  • e755f98300 Address #23 Calvin Rose 2019-01-25 20:31:08 -05:00
  • 8ee2f0a1d6 Add amalgamation to windows distribution Calvin Rose 2019-01-24 10:19:48 -05:00
  • 0726de34ff Add description of embedding to README.md Calvin Rose 2019-01-24 10:16:24 -05:00
  • 00301ad26b Add build number to amalg build. Calvin Rose 2019-01-24 00:26:57 -05:00
  • 611543c48b Add source amalgamation Calvin Rose 2019-01-24 00:15:58 -05:00
  • 4d81fbc238 Add a changelog. Calvin Rose 2019-01-22 15:23:42 -05:00
  • c5012ca4c1 Update man page. Calvin Rose 2019-01-21 16:04:47 -05:00
  • e68a889fa9 Remove doc markdown and move it to website. Calvin Rose 2019-01-21 13:49:44 -05:00
  • 795e7a9de8 Make os/date results more consistent. Calvin Rose 2019-01-20 16:49:39 -05:00
  • 090a6a8c5c Add optional env arguments to eval functions. Calvin Rose 2019-01-20 16:06:30 -05:00
  • 2bbf9fdcc5 Add os/date to core library. Calvin Rose 2019-01-20 14:34:33 -05:00
  • 0025f6ac87 Export html-escape from highlight tool. Calvin Rose 2019-01-20 13:31:26 -05:00
  • 737b2449f0 Update highlight and the mainclient. Calvin Rose 2019-01-20 10:05:51 -05:00
  • f7a0133eb1 Update highlight.janet (allow ! in symbols). Calvin Rose 2019-01-20 08:53:34 -05:00
  • 48b179d67e Add slurp and spit to the core library. Calvin Rose 2019-01-19 22:00:33 -05:00
  • d1a075b2a6 Switch order of some text in the README.md Calvin Rose 2019-01-19 13:03:42 -05:00
  • 2bad24371d Add IRC location to README.md Calvin Rose 2019-01-19 12:42:33 -05:00
  • bf8d5da3dc Fix possible memory leak on buffer overflow. (All buffer push functions can panic (longjmp), skipping deinit. Instead, we should use the garbage collected api). Calvin Rose 2019-01-19 12:31:55 -05:00
  • 4a6fcb5e23 Address issue #21 Add some github highlighting to janet files (clojure is pretty close) Calvin Rose 2019-01-19 12:11:54 -05:00
  • 5ba969f91d Make match macro prettier. Calvin Rose 2019-01-18 15:24:58 -05:00
  • 26818a5e5c Fix doc generation. Calvin Rose 2019-01-18 12:24:12 -05:00
  • b84b0e4828 Expose more of the module system. The system path can more easily modified at runtime, and the module/cache and module/loading tables are now exposed. Properly cache native modules as well. Calvin Rose 2019-01-18 12:04:34 -05:00
  • b4934ceddc Make parser errors a bit better for files with no closing delimiters. Calvin Rose 2019-01-17 23:43:46 -05:00
  • c4114fbcdb Add quote special to peg syntax to make captures terser. Calvin Rose 2019-01-17 19:28:42 -05:00
  • 95f2bbe0a0 Add highlight.janet tool which can highlight janet source code and output html or terminal escaped code. Also made re entrant calls into the vm provide better error messages. Calvin Rose 2019-01-17 18:10:04 -05:00
  • 63137b8107 Fix parsing bug for numbers. Calvin Rose 2019-01-17 12:32:51 -05:00
  • 2c1b506213 Add tagged captures for a better (more correct) form of look behind. Calvin Rose 2019-01-16 22:38:11 -05:00
  • 612a245961 More work on peg. Disable indexed backrefs and replace substitution with accumulation. Calvin Rose 2019-01-16 21:11:55 -05:00
  • 4b8edef58c Typo. Calvin Rose 2019-01-16 12:34:01 -05:00
  • 82cddef5bb Update man page and add early exit to number scanning for parser. Calvin Rose 2019-01-16 12:32:33 -05:00
  • d0fc29338c Add error special form in Peg to allow construction of grammar errors for more useful grammars that could eventually be used in a compiler. Calvin Rose 2019-01-15 16:04:47 -05:00
  • 4eeadd7463 Add optional form to peg (shorthand for (between 0 1 patt)). Calvin Rose 2019-01-15 14:08:03 -05:00
  • f0fcdf6bc5 Update Peg.md text Calvin Rose 2019-01-15 11:09:22 -05:00
  • 2a333f8359 Add simple pattern examples to peg doc. Calvin Rose 2019-01-15 11:05:51 -05:00
  • 0dd867d508 Fix markup. Calvin Rose 2019-01-14 22:33:33 -05:00
  • e3f902cb8a Update docs. Calvin Rose 2019-01-14 22:31:57 -05:00
  • c651b6f67c Fix peg doc table. Calvin Rose 2019-01-14 22:18:51 -05:00
  • 3a9b50ea4a Update peg doc and remame some peg specials. Calvin Rose 2019-01-14 22:17:13 -05:00
  • 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 -05:00
  • 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 -05:00
  • 99f176f37b Fix windows build warnings. Calvin Rose 2019-01-14 17:48:32 -05:00
  • 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 -05:00
  • 170e785b72 Fix recursion in grammars. Calvin Rose 2019-01-14 15:06:35 -05:00
  • e53778d5d8 Remove annoying (fiber) text from stacktrace. Calvin Rose 2019-01-14 12:08:13 -05:00
  • 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 -05:00
  • 97a42ea17b Address some windows issues in buffer.c Calvin Rose 2019-01-14 00:12:25 -05:00
  • 2cd489b9d4 Address windows build warnings. Calvin Rose 2019-01-14 00:09:27 -05:00
  • 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 -05:00
  • 282c02c475 Update comments and text. Calvin Rose 2019-01-12 20:22:03 -05:00
  • 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 -05:00
  • 83f4a11bf3 Add some more tests, add parameterized captures to patterns, and fix some bugs. Calvin Rose 2019-01-12 11:04:47 -05:00
  • 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 -05:00
  • 1efca2ebe7 Add some preliminary capturing ability to PEGs. Calvin Rose 2019-01-11 21:09:49 -05:00
  • 40845b5c1b Initial peg implementation. Tree walk interpretted with no captures, so not yet ready. Calvin Rose 2019-01-11 19:22:24 -05:00
  • 84fb07dd5a Add quiet option to main client. Calvin Rose 2019-01-10 17:10:12 -05:00
  • 62cb3f81fe Fix sorting in asm.c. Add README text. Calvin Rose 2019-01-09 17:09:16 -05:00
  • 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 -05:00
  • 115ed9cbb9 Move pretty printing to separate file pp.c Simplify string.c and remove janet_puts. Calvin Rose 2019-01-09 11:47:29 -05:00
  • 3ae6f64de5 Fix popen bug. Calvin Rose 2019-01-08 21:42:16 -05:00
  • ff3f7487a4 Add splice special form to grammar. Calvin Rose 2019-01-08 20:05:36 -05:00
  • f0afb3c311 Update README to indicate how to get latest grammar file. Calvin Rose 2019-01-08 20:02:01 -05:00
  • 5b1a3b8208 Make grammar tool completely generate grammar from scratch. Remove grammar from source tree. Calvin Rose 2019-01-08 19:59:54 -05:00
  • 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 -05:00
  • 67f26b7d72 Fix = should have been ==. Add some tests for vm type asserts. Calvin Rose 2019-01-08 12:21:11 -05:00
  • d5bab72620 Add a test for making method calls keyword-oo Calvin Rose 2019-01-07 14:54:39 -05:00
  • aa079e3145 Fix parser regression. Calvin Rose 2019-01-07 14:49:38 -05:00
  • d64a57297d Update examples, add method like semantics to calling keywords. Calvin Rose 2019-01-07 14:47:47 -05:00
  • be85196de8 Add callgrind task to Makefile. Unify some parser states. Calvin Rose 2019-01-06 21:49:24 -05:00
  • 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 -05:00
  • 92e9e64945 Update CONTRIBUTING.md and make valtest Calvin Rose 2019-01-06 12:32:44 -05:00
  • 63dd6d03f4 Fix english Calvin Rose 2019-01-06 12:05:40 -05:00
  • 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 -05:00
  • 6f3bc3d577 Update copyright date, fix types, remove trailing whitespace. Calvin Rose 2019-01-06 03:23:03 -05:00
  • ef5eed2c21 Add source location to doc macro. Calvin Rose 2019-01-06 02:05:15 -05:00
  • 5865692401 Surround embedded documentation with a macro so it can be disabled in a future build. Calvin Rose 2019-01-06 01:49:56 -05:00
  • 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 -05:00
  • b535c91ee1 Fix native module issue. Calvin Rose 2019-01-05 22:52:28 -05:00
  • 7b28032f5c More explicit casts to please Microsoft compiler. Calvin Rose 2019-01-05 21:58:39 -05:00
  • 0fdd404a71 Remove duplicate functionality in string.c Calvin Rose 2019-01-05 21:23:44 -05:00
  • 1f98eff33a Fix compiler warnings on emscripten. Calvin Rose 2019-01-05 20:52:32 -05:00
  • 338b31f5a2 Add janet_fixarity. Update emscripten source. Calvin Rose 2019-01-05 20:45:24 -05:00
  • 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 -05:00
  • 5b62c8e6db Better working panic implementation and more cleanup in main vm loop. Calvin Rose 2019-01-05 00:33:20 -05:00
  • cd6a7793e8 WIP panic functionality. Calvin Rose 2019-01-04 23:20:34 -05:00
  • 5afb00859a More cleanup in vm.c Calvin Rose 2019-01-04 21:15:37 -05:00
  • 001917f8d9 Begin clean up of vm.c Calvin Rose 2019-01-04 20:08:43 -05:00
  • 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 -05:00
  • 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 -05:00
  • 5fa96a6f8c Add documentation on all of the special forms. Calvin Rose 2019-01-03 17:16:34 -05:00
  • dd3fc24a1e Make number syntax a bit stricter - no leading underscores and no underscores in exponent. Calvin Rose 2019-01-03 12:13:14 -05:00
  • ddba0010b0 Make test output less verbose. Calvin Rose 2019-01-02 23:06:23 -05:00
  • 337a498edb Fix some keyword related issues. Calvin Rose 2019-01-02 22:08:51 -05:00
  • 5fff36d047 Remove janet_symbol_from_string api function. Calvin Rose 2019-01-02 20:50:31 -05:00
  • a679f60e07 Add assembly test. Calvin Rose 2019-01-02 19:58:27 -05:00
  • 58d480539c Fix assembler labels after keyword update. Calvin Rose 2019-01-02 19:55:42 -05:00
  • 6afaacf2af Update documentation on keywords. Calvin Rose 2019-01-02 19:46:24 -05:00
  • e9c94598e6 Add native keyword type to replace symbols with leading ':' character. Calvin Rose 2019-01-02 19:41:07 -05:00
  • 29ec30c79f Fix number parsing for bases between 2 and 9. Allow multisyms to have number keys. Calvin Rose 2019-01-02 16:39:24 -05:00