Commit 2595737
feat: SHOW/DESCRIBE/CREATE/DROP JSON STRUCTURE (#80)
* feat: add JSON STRUCTURE DDL commands and catalog integration. Adds CREATE/DROP/SHOW/DESCRIBE JSON STRUCTURE statements for defining
JSON structures
- Add JSON STRUCTURE grammar rules with SNIPPET and CUSTOM NAME MAP
- Add json_structures catalog table tracking element count and snippet
- Add STRUCTURES and CUSTOM_NAME_MAP lexer tokens
- Add ShowJsonStructures and DescribeJsonStructure to AST query types
- Add buildJsonStructures() to catalog builder
* bug fix UTF-8 refactor: simplify capitalizeFirstRune using unicode.ToUpper. Replace strings.ToUpper roundtrip with direct unicode.ToUpper call for cleaner single-rune capitalization.
* fix: address review feedback on JSON STRUCTURE PR
- Sort custom name map keys for deterministic DESCRIBE output
- Check errors from json.Decoder.Token() and Decode() in snippet parser
- Add comment explaining why JsonElement uses int32 (verified vs Studio Pro)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Andrej Koelewijn <andrej@koelewijn.net>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e6aeaca commit 2595737
File tree
31 files changed
+13751
-11297
lines changed- .claude/skills/mendix
- cmd/mxcli
- docs
- 01-project
- plans
- mdl-examples/doctype-tests
- mdl
- ast
- catalog
- executor
- grammar
- parser
- repl
- visitor
- sdk/mpr
31 files changed
+13751
-11297
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
11 | 39 | | |
12 | 40 | | |
13 | 41 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
335 | 347 | | |
336 | 348 | | |
337 | 349 | | |
| |||
0 commit comments