Commit 84471ef
Phase 133 COMPLETE: Parser Functions (Final 4 functions)
**Part D: Parser Functions** (4 functions - FINAL BATCH)
- codename: expr (expression name initialization)
- check_readonly: expr, variableName (const variable check)
- adjust_assign: variableCount, expressionCount, lastExpr (assignment adjustment)
- body: funcExpr, isMethod (function body parsing)
**PHASE 133 GRAND TOTAL - COMPLETE** ✅:
- Part A: 6 high-level binary/unary operators
- Part B: 14 expression helpers
- Part C: 26 code generation helpers (lcode.cpp)
- Part D: 4 parser functions
- **TOTAL: 50 FUNCTIONS MODERNIZED!**
**Comprehensive Impact**:
- e/e1/e2 → expr/leftExpr/rightExpr (~300+ occurrences)
- r/r1/r2 → targetRegister/leftRegister/rightRegister
- op → operation/binaryOp/unaryOp
- v/v2 → value/rightValue/constantIndex
- nvars/nexps → variableCount/expressionCount
- All single-letter compiler variables now self-documenting
**Files Modified**:
- src/compiler/lcode.cpp: 46 functions
- src/compiler/parser.cpp: 4 functions
- Total: 50 functions, ~400+ identifier improvements
**Testing**: All tests pass ✅ (2.15s, maintained excellent performance)
**Performance**: Still 49% faster than 4.20s baseline
**Risk**: LOW (compiler-only, no VM hot-path impact)
**Achievement**: Complete systematic modernization of all compiler expression variables across both lcode.cpp and parser.cpp. Zero cryptic single-letter variables remaining in compiler code generation!
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ae1fd2c commit 84471ef
1 file changed
+24
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
| 232 | + | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | | - | |
267 | | - | |
| 266 | + | |
| 267 | + | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
| 285 | + | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
| 293 | + | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | | - | |
364 | | - | |
| 363 | + | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
372 | | - | |
| 371 | + | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
| 658 | + | |
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
| 666 | + | |
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
| |||
0 commit comments