aboutsummaryrefslogtreecommitdiff
path: root/compile.c
AgeCommit message (Collapse)Author
2024-09-02Bugfix some text replacement thingsBruce Hill
2024-09-02Fix up some integer and print statement stuffBruce Hill
2024-09-02Fix enums/structsBruce Hill
2024-09-02BugfixBruce Hill
2024-09-02Fix some stuffBruce Hill
2024-09-02Initial WIP first pastBruce Hill
2024-08-23Bugfix for say() when length is >512, and added back the `newline`Bruce Hill
optional parameter (default=yes)
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-20Remove unused parameter and add some docs on arraysBruce Hill
2024-08-19Add .text_content as a field on DSLs instead of a methodBruce Hill
2024-08-19Support DSL constructor working on DSL itselfBruce Hill
2024-08-19Restructure things so that DSL constructors do proper escapingBruce Hill
2024-08-19Clean up codegen for strings that are just a single interpolated valueBruce Hill
2024-08-19Support demoting int literalsBruce Hill
2024-08-19Fix some numeric precision issues with how nums are printedBruce Hill
2024-08-19Fix precision of compiled numbersBruce Hill
2024-08-19Make sure imported/used modules are initialized properlyBruce Hill
2024-08-18Update channel API to take a Where parameterBruce 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-18Add `enum.tag` as a way to do a boolean test for whether a value has aBruce Hill
particular tag or not
2024-08-18Deprecate `#` operator in favor of .length and fix up some issuesBruce Hill
2024-08-18Added a .length field to arrays/sets/tables, added a .max_size field toBruce Hill
channels, and updated the API
2024-08-18Fix array indexingBruce Hill
2024-08-18Add primality testing and next_prime()/prev_prime()Bruce 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-18Fix array ++= itemBruce Hill
2024-08-17Handle demotion of integers when we know what the expected type ought toBruce Hill
be and it's just a literal.
2024-08-17Disallow accessing type members that start with underscores unlessBruce Hill
you're inside the type definition.
2024-08-17Make small integer constants actually constantBruce Hill
2024-08-17Correct the logic to prevent promoting nums to ints automaticallyBruce Hill
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-17Allow for top-level or namespace-level variables that are initializedBruce Hill
with non-constant values by the use of an initializer function and runtime checks for whether the variable is initialized.
2024-08-16For cached functions with no arguments, use a static var instead of aBruce Hill
cache table
2024-08-15Bugfix for closuresBruce 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-14Fix up type conversions with ints and numsBruce Hill
2024-08-13Support ^ exponentiation for integersBruce Hill
2024-08-13Fix some edge casesBruce Hill
2024-08-13Tweak to codegen for range iterationBruce Hill
2024-08-13Cleanup code gen for Num coercionsBruce Hill
2024-08-13Fix channelsBruce Hill