Commit Graph

1153 Commits

Author SHA1 Message Date
b85f76f6c0 Update readme 2024-10-09 14:49:00 -04:00
33d3e22023 Update example 2024-10-09 13:50:02 -04:00
5a80ff0db3 Update docs to standardize function signature formatting 2024-10-09 13:48:45 -04:00
63d48e9feb Update docs 2024-10-09 13:28:19 -04:00
074cf22ad4 Change function syntax from func(args)->ret to func(args -> ret) 2024-10-09 13:26:28 -04:00
47fca94606 Bugfix for 1e-2-3 2024-10-09 04:17:34 -04:00
a25699282d Tidy up some function annotations to use func(x,y:Foo) syntax instead of
func(x:Foo,y:Foo)
2024-10-09 02:22:32 -04:00
9dcc7ee7a9 Get rid of fn:func(Int,Num) syntax (unnamed arguments) 2024-10-09 01:56:33 -04:00
a3dab7e726 Add a test for mutating closed-over variables in a defer statement 2024-10-09 00:47:42 -04:00
7c853f83c9 Fix closure handling behavior for defer so that it can mutate
closed-over variables.
2024-10-09 00:45:52 -04:00
fcbdf18315 Bugfix for defer using enclosing scope 2024-10-09 00:36:00 -04:00
7e7ac77021 Document reductions 2024-10-08 23:39:37 -04:00
d741763293 Disallow reductions over tables (use .keys or .values instead) 2024-10-08 23:28:20 -04:00
37192d7206 Support reductions over sets 2024-10-08 23:26:49 -04:00
fc0ad68b50 Bugfix for reductions over conditional comprehensions that have no values. 2024-10-08 21:46:09 -04:00
6ae27d409a Better message 2024-10-08 21:46:03 -04:00
839c1983a0 Reduce padding needed for optional types and clean up some redundant
type padding
2024-10-08 21:10:36 -04:00
5103fde1c5 Add a test for optionals to ensure they size correctly 2024-10-08 13:39:45 -04:00
954ed42934 Simplify enum/struct codegen by using reusable general-purpose
metamethods for structs/enums instead of metamethod codegen for each struct/enum
defined.
2024-10-08 13:35:18 -04:00
6b9055db7c Deprecate readonly pointers for now 2024-10-04 13:21:56 -04:00
8f346b48aa Fix up some compiler flags around floating point numbers so they work
better with -Ofast and have more standardized behavior
2024-10-03 14:19:23 -04:00
35a19a2d1b Bugfix for Int*Num typechecking 2024-10-03 13:46:59 -04:00
54e336e30f Update array:sample() to use optional weights and do more error checking 2024-10-02 14:42:51 -04:00
c8c137639c Clean examples when doing make clean 2024-09-30 14:40:41 -04:00
1a6ce0047b Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code 2024-09-30 14:39:30 -04:00
2ba07c2cf5 Update docs 2024-09-30 13:58:43 -04:00
ec0606091b Add datetime literal and tests 2024-09-30 13:55:55 -04:00
45425b77e4 Code cleanup 2024-09-30 02:03:03 -04:00
c5ff7d86b9 Bugfix DateTime.new() 2024-09-30 01:55:24 -04:00
793717729a Parameterize with timezones 2024-09-30 01:53:39 -04:00
37780cb323 Update docs 2024-09-29 23:12:41 -04:00
d714519809 Fix some timezone issues 2024-09-29 23:09:37 -04:00
d0c015c74a Add extra example 2024-09-29 20:31:03 -04:00
4ce3f49357 Reference DateTime in the docs 2024-09-29 20:23:23 -04:00
bd54e51a85 Update docs 2024-09-29 20:23:00 -04:00
076f87361d Support using DateTime() as a constructor 2024-09-29 20:19:46 -04:00
f03587be8d Document now() 2024-09-29 20:13:00 -04:00
05515d8645 Add DateTime 2024-09-29 20:06:09 -04:00
8f7f66d7c8 Cleanup and fixes 2024-09-28 15:28:54 -04:00
23af8b64a3 Overhaul of argument parsing code 2024-09-28 15:17:09 -04:00
566356d82e Fix parsing of REPL code 2024-09-28 14:45:15 -04:00
8f717fe9f4 Redefine NULL_* values as #defines so they can be constant initializers 2024-09-28 14:17:17 -04:00
794c1343ba Define some optional types 2024-09-28 02:07:37 -04:00
e63372452e Define OptionalPath_t 2024-09-28 02:06:47 -04:00
ca93e6f3cb Simplify code by making name := use ... a Use AST instead of a Declare 2024-09-27 14:56:24 -04:00
9b15799e73 Support iterating over thunks that always return non-null values (useful
for infinite loops)
2024-09-27 14:45:06 -04:00
b26da60f2f Better error message for duplicate fn arg name 2024-09-27 14:22:36 -04:00
0622f758f7 Improved support for CLI arg parsing 2024-09-27 13:56:56 -04:00
b138893c40 Support or= and and= for optional types 2024-09-27 13:13:30 -04:00
ed8b8901c0 Add '$' prefix on all user code 2024-09-24 14:54:22 -04:00