<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 31/10/2019 à 00:15, Samuel Gougeon a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:c26d1b7f-0fa1-c08c-9a04-74f3335451e8@free.fr">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<font face="Courier New">.../...</font>
<p>It would be <i>v</i><i>ery</i> hard (and easily prone to
errors, due to many specific cases, using parentheses, etc) to
parse the input to detect all possible cases (1-char symbols,
multiple-char symbols, literal numbers with or without
exponential notations, real or complex, etc) and adapt the
multiplication symbol accordingly.<br>
</p>
</blockquote>
<p><br>
</p>
<p>Actually, the detection of multiple cases is doable. There are
not so many.<br>
Example:</p>
<p><img src="cid:part1.4A9095CA.D831C097@free.fr" alt=""><br>
<br>
Here is the list of tested cases, with an arbitrary number of
spaces before and after *:</p>
<pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><span style="color:rgb(188,143,143);">1.23</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(188,143,143);">3.32</span> <span style="color:rgb(0,0,0);"> x</span>
<span style="color:rgb(188,143,143);">1.23</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">3.32</span> <span style="color:rgb(0,0,0);"> x</span>
<span style="color:rgb(0,0,0);">var</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">1.23</span> <span style="color:rgb(0,0,0);"> x</span>
<span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">1.23</span> <span style="color:rgb(0,0,0);"> x</span>
<span style="color:rgb(0,0,0);">var </span><span style="color:rgb(92,92,92);">* </span><span style="color:rgb(188,143,143);">1.23</span> <span style="color:rgb(0,0,0);"> cdot</span>
<span style="color:rgb(0,0,0);">var</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(0,0,0);">var</span> <span style="color:rgb(0,0,0);"> cdot</span>
<span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(188,143,143);">1.23</span> <span style="color:rgb(0,0,0);"> cdot</span>
All other cases => small space \, , noticeably:
<span style="color:rgb(188,143,143);">1.23</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">3.32</span> <span style="color:rgb(92,92,92);">\</span><span style="color:rgb(0,0,0);">,</span>
<span style="color:rgb(188,143,143);">1.23</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(0,0,0);">var</span> <span style="color:rgb(92,92,92);"> \</span><span style="color:rgb(0,0,0);">,</span>
<span style="color:rgb(0,0,0);">var</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(255,170,0);">...</span> <span style="color:rgb(92,92,92);"> \</span><span style="color:rgb(0,0,0);">,</span>
<span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);"> * </span><span style="color:rgb(0,0,0);">var</span> <span style="color:rgb(92,92,92);"> \</span><span style="color:rgb(0,0,0);">,</span>
<span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(74,85,219);">(</span> <span style="color:rgb(92,92,92);"> \</span><span style="color:rgb(0,0,0);">,</span></pre>
When a literal number ends with a point, like "3.", it still works,
as with "3".<br>
<br>
Unless there are some final remarks, i will push this on review on
the forge for the<br>
CLR, DLR, EXPRESSION and scifunc_block_m blocks interfaces.<br>
<br>
Regards<br>
<p>Samuel<br>
<br>
</p>
</body>
</html>