You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/07/30 14:16:38 UTC
[plc4x] branch develop updated: - Added support for arguments for
non-discriminated types.
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 6ffc170 - Added support for arguments for non-discriminated types.
6ffc170 is described below
commit 6ffc170cea08209775e613c7ff1ce2940fb4f548
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Tue Jul 30 16:16:32 2019 +0200
- Added support for arguments for non-discriminated types.
---
.../org/apache/plc4x/plugins/codegenerator/language/mspec/MSpec.g4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-utils/protocol-base-mspec/src/main/antlr4/org/apache/plc4x/plugins/codegenerator/language/mspec/MSpec.g4 b/build-utils/protocol-base-mspec/src/main/antlr4/org/apache/plc4x/plugins/codegenerator/language/mspec/MSpec.g4
index 80ed428..f7d6d7d 100644
--- a/build-utils/protocol-base-mspec/src/main/antlr4/org/apache/plc4x/plugins/codegenerator/language/mspec/MSpec.g4
+++ b/build-utils/protocol-base-mspec/src/main/antlr4/org/apache/plc4x/plugins/codegenerator/language/mspec/MSpec.g4
@@ -28,7 +28,7 @@ complexTypeDefinition
;
complexType
- : K_TYPE name=idExpression fieldDefinition+
+ : K_TYPE name=idExpression (LBRACKET params=argumentList RBRACKET)? fieldDefinition+
| K_DISCRIMINATED_TYPE name=idExpression (LBRACKET params=argumentList RBRACKET)? fieldDefinition+
;