Commit graph

37 commits

Author SHA1 Message Date
Anton-4
e5fed613ce
Merge branch 'main' of github.com:roc-lang/roc into upgrade-to-zig-1.15.1 2025-10-14 15:48:33 +02:00
Richard Feldman
f265318700
Add nested types 2025-10-06 16:44:17 -04:00
Richard Feldman
0c189b93cf
Add type modules 2025-10-04 14:44:54 -04:00
Richard Feldman
bc2946f3b3
Add associated items 2025-10-04 13:16:56 -04:00
Anton-4
b127b29d24
get rid of all deprecated things 2025-10-01 15:52:56 +02:00
Anton-4
d791285e11
Merge branch 'main' of github.com:roc-lang/roc into upgrade-to-zig-0.15.1 2025-09-22 16:55:15 +02:00
Luke Boswell
cb42d26e11
Roc platform host shim (#8214)
* use zig Builder to generate LLVM bc for platform host shim

* WIP

* Working embedded LLVM compilation

* lints

* Update test_shared_memory_system.zig

* Update main.zig

* Refactor out builder into separate file

* remove clang fallback, remove -Dllvm build flag

* WIP change platform header

* WIP no hardcoded platform entrypoints

* WIP no hardcoded entrypoints

* remove hardcoded interpreter shim entrypoint

* WIP multiple entrypoints

* WIP multiple entrypoints

* WIP alignment issue

* it's working!!

* cleanup

* fmt

* fix tests and snapshots

* fix cross-compile

* WIP fix linking linux

* improved debug logging in rocRun

* WIP fix linux segfaults

* cleanup stray dbgs

* fix Windows linking

* WIP remove std.debug.print in prebuilt shim

* remove libc stubs, try C shim for platform host main

* WORKING ON LINUX!!!

* WIP fixing int platform

* prevent double mapping of shared memory

* WIP

* remove clang fallback

* cleanup test platforms

* vendor linux object files for musl and gnu in test platforms

* fix windows __main export

* typo

* avoide hardcoding libc path and dynamic linker on linux

* some fixes

* try CI fix for linux ARM64

* try use system CRT for ARM64

* use absolute pats for vendored CRT

* minimal roc build

* use target os for filename not host os

* implement app stubs for test platforms

* fix glibc

* WIP cross compilation

* fix run, fix build for native

* Merge remote/main

* fix macos

* add bookends

* remove hosts

* fix cross-compile for linux on macos

* fix files paths for Windows

* Update main.zig

* test ubu 24.04 too

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* debug: log all used instructions

* fmt

* get bad instruction with gdb

* install gdb

* Revert last 4 commits

* simpler cross-compile arm64 runtime files

* add minimal cross-compilation for glibc

* simplify stub generation

* Update test_int_platform.sh

* Update ci_cross_compile.yml

* Update ci_cross_compile.yml

* try alpine3.18 x64musl files

* Claude's fix + removed CPU instructions

* fix fuzz crash empty after merge

* update snapshot

* restore full CI

* some cleanup

* remove debugging from CI - print all supported CPU instructions

* try using generic when LLVM compiles app stub

* enhanced error handling for app stub compilation using LLVM

* check machine ABI on linux

* try more debugging

* update test script to inidicate truncated error logs, temporarily display everything for arm64 linux errors

* fix missing arm64 libc search paths

* back to normal CI

* try without .git 

See https://github.com/ziglang/zig/issues/21316#issuecomment-2408071050

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* undo .git change

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* retry zig build command

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* different retry strategy

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-09 13:15:23 +02:00
Isaac Van Doren
3bd2a07cd2
rename std.ArrayListUnmanaged to std.ArrayList 2025-09-06 20:48:49 -05:00
JRI98
18f72dbed6
Fix fuzz crash by correctly handling incomplete imports
zig build repro-parse -- -b bW9kdWxlW11lPSIiIgppbXBvcnQjXA== -v
2025-08-28 18:42:08 +01:00
Fabian Schmalzried
1d1837d239 first draft to parse multiline strings
TODO: Can and fix fmt
2025-08-18 20:44:11 +00:00
Richard Feldman
a0a5d81bdc
Fix missing newline 2025-08-16 21:48:33 -04:00
Richard Feldman
124fc81300
Drop some unnecessary blank lines 2025-08-16 13:59:09 -04:00
Richard Feldman
257d13a4d3
Drop unnecessary "Here is the problematic code:" 2025-08-16 13:52:38 -04:00
Richard Feldman
99dfffec89
Revert pattern assignment parsing with lookahead 2025-08-16 13:12:10 -04:00
Richard Feldman
d9f693925d
Fix duplicate expected_equals_after_pattern handler
Removed duplicate handler that was causing compilation error after merge.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-16 12:59:27 -04:00
Richard Feldman
b33d2a5b50
Merge origin/main into fix-token-regions
Resolved conflicts in src/parse/AST.zig by:
- Keeping the origin/main version of multi_arrow_needs_parens handler
- Preserving our custom no_else handler for better error messages
- Keeping our expected_equals_after_pattern diagnostic and handler

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-16 12:58:46 -04:00
Richard Feldman
63603783dd
Fix parsing bug around patterns 2025-08-16 12:57:23 -04:00
Richard Feldman
b490acffee
Tweak an error message 2025-08-16 12:49:18 -04:00
Richard Feldman
3d88ee6a92
Improve some more parsing error messages 2025-08-16 12:41:38 -04:00
Richard Feldman
053cc6e6bf
Improve error reporting regions 2025-08-16 12:35:04 -04:00
Richard Feldman
b149d28cff
Add a helpful error for parsing curried fn types 2025-08-16 12:31:22 -04:00
Richard Feldman
5a34cce18e
Add a helpful error for parsing curried fn types 2025-08-16 11:41:45 -04:00
Luke Boswell
0f59ec41f4
restore parser tests 2025-08-12 08:12:46 +10:00
Luke Boswell
5b739ad2d7
WIP 2025-08-11 17:12:27 +10:00
Luke Boswell
6cf71d5214
WIP test compiling 2025-08-11 16:28:15 +10:00
Luke Boswell
c981b23545
WIP 2025-08-11 11:20:20 +10:00
Luke Boswell
6aaab3276c
untangle cyclic dependencies 2025-08-10 10:17:58 +10:00
JRI98
2b78e6bcb8
Better fix for parse crash caused by int suffix
zig build repro-parse -- -b bW9kdWxlW10hMB8udA== -v
2025-08-06 22:50:21 +01:00
JRI98
cc0036125c
Refactor formatter to prevent unstable formatting 2025-08-02 23:47:20 +02:00
Luke Boswell
b99d5304dc
Merge pull request #8134 from lukewilliamboswell/e2e-playground
Add a test harness for the WASM Playground
2025-07-31 17:20:29 +10:00
Luke Boswell
78176b4170
Revert to original SExpr for HTML, use *const in more places 2025-07-31 15:14:19 +10:00
Jared Ramirez
0065acd1d6
Remove mod_ty and panic
This change removes `.mod_ty` from parse type anno AST since it was not
user anywhere and `.ty` contains a `qualifiers` field, making `.mod_ty`
redundant.
2025-07-30 18:12:37 -07:00
Luke Boswell
b07b83820a
Add a test harness for WASM Playground 2025-07-31 09:35:21 +10:00
JRI98
f0904b7747
Fix parser fuzz crash by always formatting blocks with curly brackets
zig build repro-parse -- -b -v bW9kdWxlW11lOntlOlV9fHx7e317fXswfS5hfQ==
2025-07-29 22:23:43 +02:00
JRI98
6d0ded87de
Unblock canonicalize fuzzer
Fix #8051
2025-07-29 22:23:41 +02:00
JRI98
8545778b74
Fix parser fuzz crashes caused by braces tracking in the tokenizer 2025-07-29 22:23:41 +02:00
Luke Boswell
760280fa17
WIP refactor parse module 2025-07-26 09:19:34 +10:00
Renamed from src/check/parse/AST.zig (Browse further)