Index: source/telingo/transformers/head.py =================================================================== --- source.orig/telingo/transformers/head.py +++ source/telingo/transformers/head.py @@ -564,10 +564,12 @@ class HeadTransformer: cond = [] diff = _ast.BinaryOperation(loc, _ast.BinaryOperator.Minus, param, shift) if lhs.ast_type != _ast.ASTType.SymbolicTerm or lhs.symbol.type != _clingo.SymbolType.Number or lhs.symbol.number > 0: - cond.append(_ast.Literal(loc, _ast.Sign.NoSign, _ast.Comparison(_ast.ComparisonOperator.LessEqual, lhs, diff))) + cond.append(_ast.Literal(loc, _ast.Sign.NoSign, + _ast.Comparison(lhs, [_ast.Guard(_ast.ComparisonOperator.LessEqual, diff)]))) if rhs.ast_type != _ast.ASTType.SymbolicTerm or rhs.symbol.type != _clingo.SymbolType.Supremum: - cond.append(_ast.Literal(loc, _ast.Sign.NoSign, _ast.Comparison(_ast.ComparisonOperator.LessEqual, diff, rhs))) + cond.append(_ast.Literal(loc, _ast.Sign.NoSign, + _ast.Comparison(diff, [_ast.Guard(_ast.ComparisonOperator.LessEqual, rhs)]))) elems.extend([_ast.ConditionalLiteral(loc, _ast.Literal(loc, _ast.Sign.NoSign, head), cond) for head in heads]) ca1d2997a'>treecommitdiff
path: root/gnu/packages/patches/highlight-gui-data-dir.patch
AgeCommit message (Expand)Author
2023-08-15gnu: highlight: Add "gui" output....* gnu/packages/pretty-print.scm (highlight): Add gui output. [source]: Add patch for GUI data directory. [outputs]: Add gui. [arguments]<phases>{fix-search-for-lua}: Fix Lua package name for GUI. {build-gui}: Add phase to build GUI. {install}: Set PREFIX variable. {install-gui}: Add phase to install GUI. [inputs]: Add qtbase-5. * gnu/packages/patches/highlight-gui-data-dir.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Ludovic Courtès <ludo@gnu.org> gemmaro