vlingo / xoom-schemata

The VLINGO XOOM Schema Registry.
https://vlingo.io
Mozilla Public License 2.0
17 stars 9 forks source link

[Compiler] Add support for arrays #22

Closed kmruiz closed 4 years ago

kmruiz commented 5 years ago

Right now, neither the ANTLR4 parser nor the code generator support array types. Array types can be from any other basic type, but there are two constraints:

int[] array = {1, 2, 3}

How to implement

VaughnVernon commented 5 years ago

@kmruiz Correct. From the spec the arrays of complex types are not expected to support initialization:

category.TypeName:1.2.1[] typeNameArrayAttribute1