feat(lang): L3 module scope - module, export, friend module
A barrel's 'module NAME' makes its directory a module; a declaration other modules use says 'export'. Private use from another module is an error naming the module and where to mark it; 'friend module' sees everything (a test harness); a file in no module is public and a package keeps its own module. LUDIC_VIS_REPORT=1 lists every violation instead of stopping, so a codebase can be given its exports first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0c73287e35
commit
0677aee93f
20 changed files with 55913 additions and 54132 deletions
|
|
@ -658,6 +658,8 @@ function emit_event_fns() -> void {
|
|||
g_term = false
|
||||
let next = lbl("evnext")
|
||||
g_ret_label = next
|
||||
g_err_file = g_onlisten[i].file
|
||||
vis_check(ev, en)
|
||||
emit_block(g_onlisten[i].a)
|
||||
g_ret_label = "ret"
|
||||
if not g_term { emit(` br label %{next}\n`) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue