Commit Graph

288 Commits

Author SHA1 Message Date
kayomn b0c34d11b6 First pass of Ona middleware API
continuous-integration/drone/push Build is passing Details
2023-11-20 21:39:42 +00:00
kayomn e9a28f074c Fix add squaring on floats instead 2023-11-16 19:02:30 +00:00
kayomn 9cf2e671d3 Implement initial update loop for canvas usage in scripts 2023-11-16 00:34:28 +00:00
kayomn ef537bef14 Merge pull request 'Refactor Kym' (#47) from kym-refactor into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #47
2023-11-12 21:23:05 +01:00
kayomn 70746b4680 Unify calling interface for object accesses in Kym
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2023-11-12 20:12:04 +00:00
kayomn b0aa7166f9 Fill in missing documentation for Kym 2023-11-12 20:02:47 +00:00
kayomn dbba822c7a Add linear algebra utils for future graphics stuff 2023-11-12 18:55:16 +00:00
kayomn e5c18e4a14 Refactor Kym
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-11-12 13:09:30 +00:00
kayomn decc2799b0 Merge pull request 'String Literal Interpolation' (#46) from kym-string-interpolation into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #46
2023-11-08 00:32:48 +01:00
kayomn c30f10db96 Implement string interpolation
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2023-11-07 23:22:25 +00:00
kayomn 63792ea983 Make tokenization aware of string templates 2023-11-07 23:06:11 +00:00
kayomn 94a13b0d3c Fix compilation errors with Stack list 2023-11-07 23:02:49 +00:00
kayomn b28b1a86c9 Fix double free and boxing bugs in VM
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-11-06 22:27:09 +00:00
kayomn eb9552c390 Merge compiler into Chunk.zig
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-11-06 20:53:24 +00:00
kayomn 83680607b7 Fix arity check error message formatting 2023-11-06 20:16:22 +00:00
kayomn 8f3a33a52b Merge pull request 'Improve Kym Run-TIme Errors' (#45) from better-kym-runtime-errors into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #45
2023-11-06 00:47:36 +01:00
kayomn 19e1fb2634 Streamline arity detection
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2023-11-05 23:46:07 +00:00
kayomn 75ddf3f2bb Add line numbers to stack traces
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-11-05 22:46:24 +00:00
kayomn 00631e66a5 Make named lambdas report their names in errors
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-11-05 16:24:06 +00:00
kayomn fd15903260 Fix recursive to_string calls
continuous-integration/drone/push Build is passing Details
2023-11-05 16:18:36 +00:00
kayomn 8b0182f03c add dynamic to_string support to dynamic object typeinfo 2023-11-05 16:06:26 +00:00
kayomn 03a8abc5dd Merge pull request 'Closures, Higher-Order Functions, and Everything in Between' (#44) from kym-captures into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #44
2023-11-05 16:52:51 +01:00
kayomn 816051f066 Amend code review
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2023-11-05 15:51:25 +00:00
kayomn c86173d759 Fix bugs with n+1-nested closures
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2023-11-05 12:25:16 +00:00
kayomn 88ff2a64b6 Make arguments read-only
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-11-04 13:41:39 +00:00
kayomn 880761a722 Implement closures 2023-11-04 11:30:45 +00:00
kayomn 6ea44f552e Merge pull request 'Rewrite Ona Script implementation' (#43) from kym-rewrite into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #43
2023-10-29 22:51:51 +01:00
kayomn 0965779e83 Rewrite Ona Script implementation
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-10-29 21:48:21 +00:00
kayomn 2f4cab3cc7 Rewrite stacking arena allocator to be correct 2023-10-29 21:44:02 +00:00
kayomn 523509d300 Hotfix for miscompilation in lambdas that return lambdas
continuous-integration/drone/push Build is passing Details
2023-09-03 02:19:33 +01:00
kayomn a0554d0d2e Merge pull request 'Add Function Literal Syntax to Ona Script' (#39) from kym-functions into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #39
2023-09-02 21:15:27 +02:00
kayomn 9eef1074f9 Simply Kym function argument retrieval in VM
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-30 20:58:06 +01:00
kayomn c071ca82aa Fix empty strings being parsed incorrectly
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-26 21:36:16 +01:00
kayomn 5c08a1b63e Add lambda argument arity checking to runtime
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2023-08-26 21:30:36 +01:00
kayomn b9f03b34c1 Add argument resolving to functions
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-26 17:00:55 +01:00
kayomn f5ed4bbcad Add support for basic lambda syntax 2023-08-26 16:00:17 +01:00
kayomn 0e26b8acde Merge pull request 'Make Local Declarations Explicit' (#38) from kym-explicit-local-declarations into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #38
2023-08-26 01:14:02 +02:00
kayomn 960d022d03 Add read-only storage class for locals
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-26 00:11:37 +01:00
kayomn 83fa162ba8 Make local declarations require "var" prefix
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-25 23:40:17 +01:00
kayomn 1e3f676698 Merge pull request 'Implement Control Flow Statements in Kym' (#37) from kym-control-flow into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #37
2023-08-26 00:01:24 +02:00
kayomn 77af4d067b Fix > and == operators being miscompiled
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-25 22:57:33 +01:00
kayomn c4916a4195 Clean up statement AST generation logic 2023-08-25 22:45:48 +01:00
kayomn 08a63489b0 Add if / else 2023-08-24 23:45:29 +01:00
kayomn bb1e689c5a Add while loops
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-22 23:49:23 +01:00
kayomn eca2cfffb8 Fix off-by-one if statement jump error
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2023-08-21 23:51:49 +01:00
kayomn 56d9899ac2 Work around miscompilation 2023-08-21 12:27:02 +01:00
kayomn 0d6e5250c7 Refactor Kym AST
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-20 22:25:38 +01:00
kayomn 2d016dc085 Implement if statements in AST and jumps in the VM
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-20 17:41:57 +01:00
kayomn a1d35bf67c Merge pull request 'Implement vector swizzling in Kym' (#36) from kym-vector-swizzling into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #36
2023-08-20 03:37:55 +02:00
kayomn d53bf188cf Implement vector swizzling in Kym
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-08-20 02:35:53 +01:00