Implemented parsing logic for DimSyntax and ConstSyntax.