- Modify parser to handle ZON tuples (`.{ 1, 2, 3 }`) as arrays
- Update README with more detailed explanation of ZON tuple syntax
- Add multiple example ZON files demonstrating tuple usage
- Implement tuple parsing in `parser.py`
- Add test case for tuple parsing
15 lines
252 B
Plaintext
15 lines
252 B
Plaintext
.{
|
|
.simple_object = .{
|
|
.x = 1,
|
|
.y = 2,
|
|
},
|
|
.simple_tuple = .{ 1, 2, 3 },
|
|
.nested_object = .{
|
|
.nested = .{
|
|
.a = 1,
|
|
.b = 2,
|
|
},
|
|
},
|
|
.nested_tuple = .{ .{ 1, 2 }, .{ 3, 4 } },
|
|
}
|