Commit graph

10223 commits

Author SHA1 Message Date
Joshua Warner
35fa82cbef
Refactor: Convert TypeAnnotation::Record to to_node 2024-12-28 22:31:28 -05:00
Joshua Warner
d2e1c12b96
Refactor: introduce NodeInfo and needs_indent 2024-12-28 22:31:27 -05:00
Joshua Warner
13ec99c16b
Move TypeAnnotation::Apply to to_node 2024-12-28 22:31:26 -05:00
Joshua Warner
f169329c0e
Move TypeAnnotation::Function to to_node 2024-12-28 22:31:26 -05:00
Joshua Warner
3a7265baed
More impls for to_node 2024-12-28 22:31:25 -05:00
Joshua Warner
dbbd097708
Always use to_node for TypeAnnotation::As 2024-12-28 22:31:25 -05:00
Joshua Warner
5b93e834f1
Refactor more things into TypeAnnotation::Nodify 2024-12-28 22:31:24 -05:00
Joshua Warner
d8d0b6ebb1
Disallow simplifying empty assignment of dbg 2024-12-28 22:29:46 -05:00
Joshua Warner
59fe0f06ea
Make sure to use keyword rather than word for parsing keywords 2024-12-28 22:29:45 -05:00
Joshua Warner
9e6c249dca
Disallow any keyword followed by an exclaimation mark 2024-12-28 22:29:45 -05:00
Joshua Warner
0acd59b4d6
Treat crash keyword uniformly 2024-12-28 22:29:42 -05:00
Brendan Hansknecht
0ce43ffd1e
Merge pull request #7427 from roc-lang/const-write
avoid writing to readonly refcounts
2024-12-28 17:37:47 -08:00
Brendan Hansknecht
a7e4a55e1e
add refcount constants 2024-12-28 15:01:00 -08:00
Brendan Hansknecht
ad41b509cf
avoid writing to readonly refcounts 2024-12-28 14:43:17 -08:00
Jakub Konka
d67371c351 Fix clippy warnings 2024-12-28 23:30:19 +01:00
Jakub Konka
9cb0c00b2a Remove a debugging hack 2024-12-28 21:43:36 +01:00
Brendan Hansknecht
c073f1fb03
clippy try 2 2024-12-28 11:56:11 -08:00
Brendan Hansknecht
a3fba8afbf
clippy 2024-12-28 11:48:01 -08:00
Brendan Hansknecht
8e402b507f
use default llvm pipelines directly 2024-12-28 10:53:54 -08:00
Joshua Warner
f4698e1517
Fix can panic with unbound type variables 2024-12-28 10:39:05 -05:00
Luke Boswell
9b13b19d08
Merge pull request #7419 from shua/exp10
RocDec::from_str accept 'e' exponent notation
2024-12-28 20:57:03 +11:00
Jakub Konka
707a6b6f0f macho: recognise some libc imports 2024-12-28 10:04:38 +01:00
Jakub Konka
90fe145900 trim leading _ when searching for symbol in host and app 2024-12-28 10:04:38 +01:00
Jakub Konka
378659dfa9 refactor and log more output 2024-12-28 10:04:38 +01:00
Jakub Konka
88962f9e98 ignore __eh_frame section for the time being in macho surgery 2024-12-28 10:04:38 +01:00
Jakub Konka
32b9274dad refactor collect_roc_definitions for MachO
I don't think we need to check for '@' in symbol naming as versioning
is not done on a symbol level for MachO as far as I remember (unlike for
Linux).
2024-12-28 10:04:38 +01:00
Jakub Konka
f847770f6e abstract away logic for finding symbol by index
I am still not quite sure what exactly I am looking at in this function
but this will have to do for now.

Assuming this function, aka `get_target_offset`, is correct, implement
handling of `RelocationKind::Absolute` which for now assume is `UNSIGNED`
and pointer sized.
2024-12-28 10:04:38 +01:00
Jakub Konka
14ad642296 object::macho forces us to handle MachO relocs low-level 2024-12-28 10:04:38 +01:00
Jakub Konka
322366bab3 save generated app_data to an object file 2024-12-28 10:04:36 +01:00
Luke Boswell
f7dbf850b9
Merge pull request #7409 from joshuawarner32/fuzzing-bugs-5
Fix another batch of parsing/formatting bugs found in fuzzing
2024-12-28 17:36:03 +11:00
shua
b5ce935d89
RocDec::from_str accept 'e' exponent notation
The intent of this change is to allow roc dec values to be parsed from
strings using the 'e' exponent notation, eg '1e3' as a notation for '1000'.

Fixes #7351
2024-12-27 22:44:20 -05:00
Ian McLerran
7c611c2372
fix single character string constant 2024-12-27 11:37:29 -06:00
Ian McLerran
58c59ead19
Fix links generated for any submodules 2024-12-27 11:22:56 -06:00
Sam Mohr
3c49462fdd
Merge pull request #7406 from gamebox/issue-7089
Issue 7089: ?? operator
2024-12-27 10:15:53 -05:00
Sam Mohr
b0d1d16db6
Merge pull request #7412 from gamebox/issue-7407
#7407: Register package dependent packages
2024-12-26 10:26:51 -08:00
Jared Ramirez
69c36af43e
Merge branch 'main' into jared/improve-module-error 2024-12-26 09:20:36 -08:00
Anthony Bullard
d0ec7e2762
Add unit test 2024-12-26 10:56:48 -06:00
Anthony Bullard
8a726d23ed
DRY up code 2024-12-26 10:56:18 -06:00
Anthony Bullard
2a8765c1e9
#7407: Register package dependent packages\n\nCloses #7407 2024-12-26 10:56:18 -06:00
Anthony Bullard
7433ad63b6
Fix precendence 2024-12-26 10:53:47 -06:00
Anthony Bullard
03641c16f8
Fix unit tests 2024-12-26 10:53:47 -06:00
Anthony Bullard
9a76a8d2ce
Add snapshot test 2024-12-26 10:53:47 -06:00
Anthony Bullard
c70ceb4f98
Issue 7089: ?? operator 2024-12-26 10:53:47 -06:00
Sam Mohr
87fb90660f
Remove broken docs example for Task.batch 2024-12-25 12:30:43 -08:00
Sam Mohr
2b6eaf48d8
Add Task.combine 2024-12-25 11:57:35 -08:00
Joshua Warner
ee3619f016
Merge branch 'main' into fuzzing-bugs-5 2024-12-25 09:03:11 -08:00
Joshua Warner
9d3f232794
Switch to something that won't trigger the panic detector 2024-12-25 09:33:19 -05:00
Joshua Warner
2464ce6856
Fix formatting issue with closures hiding in unary ops 2024-12-24 15:05:20 -05:00
Joshua Warner
8f0566a55f
Fix crash with doubly-nested parens in patterns 2024-12-24 14:08:52 -05:00
Joshua Warner
941c6c4fe3
Fix exponential behavior in parsing function types in tuples 2024-12-24 11:20:36 -05:00