Commit graph

48 commits

Author SHA1 Message Date
Anton-4
a07814d053
fix zig build + fmt 2025-10-17 16:15:59 +02:00
Anton-4
aea973e12c
fix zig build roc 2025-10-17 13:41:28 +02:00
Anton-4
ea45b7f99f
Merge branch 'main' of github.com:roc-lang/roc into upgrade-to-zig-0.15.1 2025-10-17 11:38:36 +02:00
Anton-4
f701a32503
fix all the things 2025-10-15 14:03:23 +02:00
Richard Feldman
5242796fe2
Update where syntax 2025-10-14 15:12:20 -04:00
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
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
086a0f7ae8 remove MultilineStringEnd 2025-08-21 09:52:53 +00:00
Fabian Schmalzried
852a9af365
Update Parser.zig
Add doc comment

Signed-off-by: Fabian Schmalzried <fabhof@posteo.de>
2025-08-19 13:10:38 +02:00
Fabian Schmalzried
159d75283b fix MultilineStringEnd error 2025-08-18 20:44:12 +00: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
99dfffec89
Revert pattern assignment parsing with lookahead 2025-08-16 13:12:10 -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
843da2f239
Fix parsing regression 2025-08-16 12:45:57 -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
9438a153bc
Format parens for curried function types 2025-08-16 12:31:22 -04:00
Richard Feldman
5fbc37370d
Fix parsing of curried functions 2025-08-16 00:48:22 -04: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
Anthony Bullard
2623047afd
Add nesting counter to statements 2025-08-07 06:18:37 -05:00
Anthony Bullard
3a0aac6ecd
Add nesting counter to patterns 2025-08-07 06:17:16 -05:00
Anthony Bullard
a1570fc901
Add nesting counter to type annos 2025-08-07 06:16:23 -05:00
Luke Boswell
cbab372a79
Merge pull request #8166 from gamebox/fix-parser-stack-overflow
Use a nesting counter to protect against stack overflow in parser
2025-08-07 16:03:31 +10:00
JRI98
b0184069ef
Top level expressions shouldn't parse correctly 2025-08-07 00:06:32 +01: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
Anthony Bullard
68ddaaafa0
Lint 2025-08-06 06:23:04 -05:00
Anthony Bullard
a1095ae8f9
Use a nesting counter to protect against stack overflow in parser 2025-08-06 06:03:04 -05:00
JRI98
7eb250c7bc
Fix typo for CI 2025-08-04 16:48:59 +01:00
JRI98
acc27d5c51
Fix parse crash caused by int suffix
zig build repro-parse -- -b bW9kdWxlW10oKTAJLnQ= -v
2025-08-03 00:06:28 +02:00
JRI98
fc3e5330da
Fix parser crash related to qualified lowercase idents in patterns
zig build repro-parse -- -b -v bW9kdWxlW118fHxSLm9yfHx8MA==
2025-08-02 10:28:06 +02:00
JRI98
29acef0d16
Fix canonicalize crash caused by malformed escape sequences
zig build repro-canonicalize -- -b -v KAogICAgbiA9IHxffCB7CiAgmoAnLAogECAgJ1x1MCknJzgQKScnLAoiICAgIAAAwW/yhiMAJ2EnLAogICDqQAAAACwKICAgICfwn5qAJywKICDDqScsCiAgICAn8J+agCcsCiAQICAnXHUwJ/CfmoAnLAogIMOpJywKICAgICAgICdsb25nJywKKQ==
2025-08-02 10:28:05 +02:00
Richard Feldman
2ad8de5f86
Fix some parser associativity issues 2025-08-01 20:25:22 -04:00
Luke Boswell
9efe670c07
add support for ! 2025-08-01 17:52:36 +10:00
Luke Boswell
2bb7a0a87d
Merge pull request #8133 from JRI98/fix-fuzz-crashes
Fix parser fuzz crash by improving formatting of pattern alternatives
2025-07-31 17:33:14 +10:00
nkxxll
d4d785a527
chore: remove unnecessary lines of code 2025-07-31 00:32:16 +02:00
JRI98
82d636bd0a
Fix parser fuzz crash by improving formatting of pattern alternatives
zig build repro-parse -- -b YXBwW117ZjpwbGF0Zm9ybSIifVtdfHx7fW1hdGNoIDB7MHwjDTA9Pnt9CigpPT4wfQ== -v
2025-07-30 11:32:50 +02:00
JRI98
f4045e87a0
Fix parser fuzz crashes by disallowing blocks as top level statements
zig build repro-parse -- -b -v bW9kdWxlW117Un0=
2025-07-29 22:23:42 +02:00
JRI98
efc8315997
Support nested tuple destructure declarations 2025-07-29 22:23:40 +02:00
Luke Boswell
760280fa17
WIP refactor parse module 2025-07-26 09:19:34 +10:00
Renamed from src/check/parse/Parser.zig (Browse further)