Skip to content

Commit

Permalink
Put no space between function name and arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Waldek Hebisch committed Jul 3, 2024
1 parent 7464ccc commit eec2f4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-07-03 Waldek Hebisch <[email protected]>

* src/interp/i-output.boot: Put no space between function
name and arguments

2024-07-01 Waldek Hebisch <[email protected]>

* src/algebra/fspace.spad: Re-apply change from 05-26
Expand Down
11 changes: 5 additions & 6 deletions src/interp/i-output.boot
Original file line number Diff line number Diff line change
Expand Up @@ -456,12 +456,11 @@ outputMapTran(op, x) ==
outputMapTran0(op, first l, alias)

outputMapTran0(op, argDef, alias) ==
arg := first argDef
def := rest argDef
[arg',:def'] := simplifyMapPattern(argDef,alias)
arg' := outputTran arg'
if null arg' then arg' := '"()"
['CONCATB, op, outputTran arg', "==", outputTran def']
[arg, :def] := simplifyMapPattern(argDef,alias)
arg := outputTran(arg)
if null(arg) then arg := '"()"
else if SYMBOLP(arg) then arg := ['PAREN, arg]
['CONCATB, ['CONCAT, op, arg], "==", outputTran(def)]

outputTranReduce ['REDUCE,op,.,body] ==
['CONCAT,op,"/",outputTran body]
Expand Down

0 comments on commit eec2f4b

Please sign in to comment.