Skip to content

Commit

Permalink
Update ExpressionRulesGenerator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed Nov 19, 2023
1 parent e51b0a4 commit 4d3a899
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sly/parser/generator/ExpressionRulesGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,14 @@ public ExpressionRulesGenerator(string i18n = null)
});


if (operationsByPrecedence.Count > 0)
{

var operandNonTerminal = GetOperandNonTerminal(parserClass,configuration, result);


if (operandNonTerminal != null && operationsByPrecedence.Count > 0)
GenerateExpressionParser(configuration, operandNonTerminal, operationsByPrecedence,
parserClass.Name);
}


configuration.UsesOperations = operationsByPrecedence.Any<KeyValuePair<int, List<OperationMetaData<IN>>>>();
result.Result = configuration;
Expand Down

0 comments on commit 4d3a899

Please sign in to comment.