Skip to content

Commit

Permalink
Revert "Update ExpressionRulesGenerator.cs"
Browse files Browse the repository at this point in the history
This reverts commit 4d3a899.
  • Loading branch information
b3b00 committed Nov 20, 2023
1 parent 5017cec commit 06876fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sly/parser/generator/ExpressionRulesGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,15 @@ 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 06876fe

Please sign in to comment.