Commit 17ed6af
committed
Parser/CodeGen/Build fixes: fn-ptr params, template defaults, bitfields, ref-qualifiers, throw-expr, Windows wizard
Parser fixes:
- fn-ptr params with defaults: float (*fn)(float) = nullptr now parsed correctly
(ref-to-array branch discriminates on ( vs [ after (*name))
- encode fn-ptr param as name__fnptr__(sig) for CodeGen round-trip
- template default values: separate parenDepth/angleDepth so > inside
(sizeof(T) > 2 ? 8 : 4) no longer closes the template arg list early
- explicit empty <> now stores sentinel NamedType('<>') so CodeGen emits <>
instead of bare name (Ec06Buf<> ec06_b was emitting Ec06Buf ec06_b)
- array-new value-init: new float[n]() trailing () now consumed
- trailing & and && ref-qualifiers on member functions now consumed
- bitfield width: named (int x : 4) and unnamed (int : 2) now parsed;
unnamed handled by returning empty name before expectIdentifier() throws
- throw as expression in ternary else branch: parseTernary() now handles
throw before delegating to parseLogicalOr()
- looksLikeTemplateArgList: bare ? at depth 0 now rejects speculation
(was treating v < lo ? lo : v > hi as a template instantiation)
CodeGen fixes:
- fn-ptr param emission: decodes name__fnptr__(sig) -> rettype (*name)(sig)
- array-of-fn-ptr dims: void (*ops[4])(int) now emits [4] inside parens
(was emitting void (*ops)[4] treating it as ptr-to-array)
- float literal suffix: L/l suffix now excluded from f-append
(180.0L was becoming 180.0Lf breaking long double literals)
CppBuild fixes:
- E0005b false positive: Array<T>.get().field no longer triggers E0005
(now requires positive ArrayList confirmation before firing)
- Windows wizard: PATH g++ no longer trusted on Windows; only MSYS2
mingw64 paths accepted (Git for Windows g++ would pass detection
but fail at link time due to missing GLFW/GLEW)
- InstallWizard: same fix -- detectWindowsMissing() now checks only
known MSYS2 paths, not commandExists('g++') which hits PATH
Other:
- rename drag-and-drop to plug-and-play throughout (zip, scripts)
- rebuild-jar.py now syncs jar to Processing bundled mode dirs1 parent ff997b1 commit 17ed6af
11 files changed
Lines changed: 283 additions & 96 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
This file was deleted.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
Binary file not shown.
Binary file not shown.
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
| 689 | + | |
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
705 | | - | |
| 704 | + | |
| 705 | + | |
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 252 | | |
256 | 253 | | |
257 | 254 | | |
| |||
264 | 261 | | |
265 | 262 | | |
266 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
267 | 283 | | |
268 | | - | |
269 | | - | |
270 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
271 | 287 | | |
272 | | - | |
| 288 | + | |
273 | 289 | | |
274 | 290 | | |
275 | 291 | | |
| |||
283 | 299 | | |
284 | 300 | | |
285 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
286 | 306 | | |
287 | 307 | | |
288 | 308 | | |
| |||
294 | 314 | | |
295 | 315 | | |
296 | 316 | | |
| 317 | + | |
297 | 318 | | |
298 | 319 | | |
299 | 320 | | |
| |||
626 | 647 | | |
627 | 648 | | |
628 | 649 | | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
629 | 663 | | |
630 | 664 | | |
631 | 665 | | |
| |||
849 | 883 | | |
850 | 884 | | |
851 | 885 | | |
852 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
853 | 893 | | |
854 | 894 | | |
855 | 895 | | |
| |||
892 | 932 | | |
893 | 933 | | |
894 | 934 | | |
895 | | - | |
| 935 | + | |
| 936 | + | |
896 | 937 | | |
897 | 938 | | |
898 | 939 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
262 | 258 | | |
263 | 259 | | |
264 | 260 | | |
| |||
2400 | 2396 | | |
2401 | 2397 | | |
2402 | 2398 | | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
2403 | 2403 | | |
2404 | 2404 | | |
2405 | 2405 | | |
| |||
2408 | 2408 | | |
2409 | 2409 | | |
2410 | 2410 | | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
2411 | 2458 | | |
2412 | 2459 | | |
2413 | 2460 | | |
| |||
0 commit comments