aboutsummaryrefslogtreecommitdiff
path: root/typecheck.c
AgeCommit message (Collapse)Author
2024-09-05Clean up some importsBruce Hill
2024-09-04Disallow 'use' statements that aren't top levelBruce Hill
2024-09-03Support literal Text("blah") for text that is constant ASCII stringsBruce Hill
2024-09-02Bugfix some text replacement thingsBruce Hill
2024-09-02Initial WIP first pastBruce Hill
2024-08-23Bugfix for parsing intsBruce Hill
2024-08-22Overhaul of import syntax. Now everything uses `use`: `use foo`, `useBruce Hill
./foo.tm`, `use <foo.h>`, `use libfoo.so`
2024-08-21Variables can no longer hold function pointers, only closure_t's. ThisBruce Hill
makes error reporting easier and prevents issues where some functions could be assigned, but not others. Also change outputs so Void returns don't show up when displaying types, now just: `func()`
2024-08-20Bugfix some copy-on-write cases for when pointers are automaticallyBruce Hill
derefenced for method calls
2024-08-19Remove TODOBruce Hill
2024-08-19Add .text_content as a field on DSLs instead of a methodBruce Hill
2024-08-19Bugfix :text_content() for DSLsBruce Hill
2024-08-18Add Channel:peek()Bruce Hill
2024-08-18Rename push/pop to give/get, since it's not stack-orderedBruce Hill
2024-08-18Add array:first(predicate:func(x:&T)->Bool)->@%T?Bruce Hill
2024-08-18Deprecate `#` operator in favor of .length and fix up some issuesBruce Hill
2024-08-18Improved syntax for dollar-string literalsBruce Hill
2024-08-18Fix up some bigint logic issuesBruce Hill
2024-08-18Split BigIntType out of IntType and switch to using enums for the sizeBruce Hill
of ints/nums
2024-08-17Add table:get_or_null(key) for tables with non-null pointer values,Bruce Hill
which lets get() keep the non-null return type
2024-08-16Check for compile-time constant integers that require heap allocations.Bruce Hill
2024-08-15More helpful error message for table indexingBruce Hill
2024-08-15Add array:find()Bruce Hill
2024-08-15Add method for array:remove_item(item) and renameBruce Hill
array:remove(index)->array:remove_at(index) to avoid confusion. Also hook up array:has()
2024-08-15Add array:shuffled() and checks for array insertionBruce Hill
2024-08-15Add binary search method to arraysBruce Hill
2024-08-13Support ^ exponentiation for integersBruce Hill
2024-08-13Partially working first draft of bigintsBruce Hill
2024-08-12Bugfix some issues with table keys/valuesBruce Hill
2024-08-11Add channels and threadsBruce Hill
2024-08-10Overhaul of operator metamethodsBruce Hill
2024-08-10Add array:counts()Bruce Hill
2024-08-10Add Array:unique() to get a set of unique itemsBruce Hill
2024-08-10For tables, deprecate support for square bracket indexing and .defaultBruce Hill
values, replacing them with a `:bump()` function for tables with numeric values. This means that counters can be implemented easily without the need to mask complexity.
2024-08-10Add Sets to the languageBruce Hill
2024-08-04Tweaks to array implementation, including changing how the bits areBruce Hill
allocated, making more explicit checks for refcounts and max values, optimizations for certain methods, and adding compile-time errors for arrays that hold items that are too large.
2024-08-04Switch around some of the logic for array:random() and array:shuffle()Bruce Hill
to use Int$random() and return values
2024-08-03Revert "Fix array:random() to return a random item using correct RNG logic,"Bruce Hill
This reverts commit 68b34cf00b8a52509c0bed7b1e66b3e40de0c4f5.
2024-08-03Make default table removal behavior deterministic, but have cachesBruce Hill
explicitly use random eviction.
2024-08-03Fix array:random() to return a random item using correct RNG logic,Bruce Hill
rather than a reference.
2024-07-26Replace heap_str with GC_strdupBruce Hill
2024-07-26Replace heap_strn() with GC_strndup()Bruce Hill
2024-07-20Deprecate array:pairs() and switch iterator functions to use enumsBruce Hill
2024-07-19Fix for unqualified enum names as return valuesBruce Hill
2024-07-13Fix for reductions over iterators like `(+) range(5, 10)`Bruce Hill
2024-07-13Add ReturnType(ret) so we can more accurately track return values forBruce Hill
`if` statements
2024-07-13Allow lambdas to have a return statement as the last statementBruce Hill
2024-07-13Add array:pairs()Bruce Hill
2024-07-13Add iterator functionsBruce Hill
2024-07-10Add array:to() to split out functionality of array:from()Bruce Hill