Commit 546a929
Antigravity Agent
fix(reader): add enum parsing support
- Parse "enum:" at indent 2: extract "[Red, Black]"
- Store in TypeDef.enum_values
- Output as "pub const Color = enum { Red, Black };"
Tested: rb_tree.tri generates correct Color enum.
Note: skip_list MAX_LEVEL still unsupported (constants not parsed).1 parent 32d297e commit 546a929
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1087 | 1110 | | |
1088 | 1111 | | |
1089 | 1112 | | |
| |||
0 commit comments