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/05/26 14:02:19 UTC
[plc4x] 01/02: - Made it possible to distinguish between
simpleTypeReferences and complexTypeReferences in the grammar.
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch feature/code-gen
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 9dc50026b778153999e26461928b7f7e6786b67a
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Sun May 26 15:53:48 2019 +0200
- Made it possible to distinguish between simpleTypeReferences and complexTypeReferences in the grammar.
---
.../org/apache/plc4x/codegenerator/parser/imaginary/Imaginary.g4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sandbox/plc4x-maven-plugin/src/main/antlr4/org/apache/plc4x/codegenerator/parser/imaginary/Imaginary.g4 b/sandbox/plc4x-maven-plugin/src/main/antlr4/org/apache/plc4x/codegenerator/parser/imaginary/Imaginary.g4
index 7c86ee6..0036d65 100644
--- a/sandbox/plc4x-maven-plugin/src/main/antlr4/org/apache/plc4x/codegenerator/parser/imaginary/Imaginary.g4
+++ b/sandbox/plc4x-maven-plugin/src/main/antlr4/org/apache/plc4x/codegenerator/parser/imaginary/Imaginary.g4
@@ -74,8 +74,8 @@ typeSwitchField
typeReference
- : IDENTIFIER
- | dataType
+ : complexTypeReference=IDENTIFIER
+ | simpleTypeReference=dataType
;
caseStatement