Skip to content

Commit

Permalink
feat(plc4x/codegen): remove traces from single ticks on literals
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Nov 4, 2021
1 parent ecb4bb0 commit 8580b51
Show file tree
Hide file tree
Showing 29 changed files with 2,421 additions and 2,434 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,8 @@ innerExpression
;

idExpression
// TODO: remove the old superfluos ticks ASAP
: TICK id=IDENTIFIER_LITERAL TICK
| id=IDENTIFIER_LITERAL
: id=IDENTIFIER_LITERAL
// Explicitly allow the loop type keywords in id-expressions
// TODO: remove the old superfluos ticks ASAP
| TICK id=ARRAY_LOOP_TYPE TICK
| id=ARRAY_LOOP_TYPE
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ public void enterEnumValueDefinition(MSpecParser.EnumValueDefinitionContext ctx)
for (int i = 0; i < numConstantValues; i++) {
MSpecParser.ArgumentContext argumentContext = parentCtx.params.argument(i);
String constantName = argumentContext.name.getText();
constantName = constantName.substring(1, constantName.length() - 1);
MSpecParser.ExpressionContext expression = ctx.constantValueExpressions.expression(i);
String constant = unquoteString(expression.getText());
// String expressions are double escaped
Expand Down
204 changes: 102 additions & 102 deletions code-generation/protocol-base-mspec/src/test/resources/mspec.example

Large diffs are not rendered by default.

Loading

0 comments on commit 8580b51

Please sign in to comment.