function definitions outside modules

This commit is contained in:
2026-01-25 09:49:44 +01:00
parent 4e07ffa70c
commit 6ad1c86b95
7 changed files with 1576 additions and 63 deletions

View File

@@ -12,6 +12,7 @@ The implementation is organized into 4 phases:
| **Phase 2** | Sessions | 07 | High |
| **Phase 3** | Mix Integration | 08 | High |
| **Phase 4** | Advanced Features | 09-10 | Medium/Low |
| **Phase 5** | Literate Programming | 11-13 | Medium |
## Task List
@@ -70,6 +71,20 @@ These tasks implement the minimum viable product - basic Elixir code execution i
- `:remsh node@host` connects to running nodes
- `:async yes` for non-blocking execution
### Phase 5: Literate Programming Enhancements
| Task | Title | Time | Status |
|------|-------|------|--------|
| [11](11-fix-error-display-in-buffer.md) | Fix Error Display in Buffer | 1 hr | Pending |
| [12](12-imports-block-support.md) | Imports Block Support | 1-2 hrs | Pending |
| [13](13-module-definition-blocks.md) | Module Definition Blocks | 2-3 hrs | Pending |
**Phase 5 Deliverables:**
- `#+BEGIN_IMPORTS elixir` blocks for shared imports/aliases
- `:module ModuleName` header for defining reusable functions
- Multiple blocks with same `:module` merge their functions
- Functions available via explicit imports in subsequent blocks
## Implementation Order
```
@@ -90,6 +105,11 @@ Phase 3 (After Phase 1, can parallel with Phase 2)
Phase 4 (After relevant dependencies)
├── 09-remote-shell (after 07)
└── 10-async-execution (after Phase 1)
Phase 5 (After Phase 1, builds on 12)
├── 11-fix-error-display-in-buffer
├── 12-imports-block-support
└── 13-module-definition-blocks (after 12)
```
## Time Estimates
@@ -100,7 +120,8 @@ Phase 4 (After relevant dependencies)
| Phase 2 | 3-4 hours |
| Phase 3 | 2-3 hours |
| Phase 4 | 5-7 hours |
| **Total** | **18-26 hours** |
| Phase 5 | 4-6 hours |
| **Total** | **22-32 hours** |
## Getting Started