Commit 7db903f
feat: unify MODIFY ATTRIBUTE syntax to accept colon separator (#81)
The MODIFY ATTRIBUTE syntax was inconsistent with CREATE ENTITY and
ADD ATTRIBUTE which both use colon (Name: Type). MODIFY ATTRIBUTE
used space (Name Type).
Update the grammar to accept an optional colon in MODIFY ATTRIBUTE
and MODIFY COLUMN, making colon the recommended style:
ALTER ENTITY Module.Customer
MODIFY ATTRIBUTE Address: String(500);
Both syntaxes remain valid for backward compatibility:
MODIFY ATTRIBUTE Name: String(200) -- new (preferred)
MODIFY ATTRIBUTE Name String(200) -- old (still accepted)
Updated all examples and skills to use colon consistently, aligning
with CREATE ENTITY, ADD ATTRIBUTE, microflow parameters, and page
parameters.
Fixes #81
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 59c2903 commit 7db903f
File tree
5 files changed
+5847
-5803
lines changed- docs/06-mdl-reference
- mdl-examples/doctype-tests
- mdl/grammar
- parser
5 files changed
+5847
-5803
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2877 | 2877 | | |
2878 | 2878 | | |
2879 | 2879 | | |
2880 | | - | |
2881 | | - | |
| 2880 | + | |
| 2881 | + | |
2882 | 2882 | | |
2883 | 2883 | | |
2884 | 2884 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
1366 | | - | |
| 1366 | + | |
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
1370 | | - | |
| 1370 | + | |
1371 | 1371 | | |
1372 | 1372 | | |
1373 | 1373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
700 | | - | |
| 699 | + | |
| 700 | + | |
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| |||
Large diffs are not rendered by default.
0 commit comments