<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">David,<br>
<br>
I have searched around and am unable to find original files. I
can only see "=" as well as +-etc - and I can not see how to use
"=".<br>
<br>
It looks perfectly safe to add floor (and ceil) - I will add to
trunk as I am unloath to go around monkeying with yacc output.<br>
<br>
John<br>
<br>
<br>
On 30/04/14 18:18, David Einstein wrote:<br>
</div>
<blockquote
cite="mid:CAHr4SdY0XJanmjoNutLi9mBix-YzNAh6da=fM8wj9fqp09iPeg@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">Is the precise grammar for the expressions for
CoinModel (the one shown at the end of examples/addBits.cpp)
documented somewhere. It appears that there is slightly more
than +-*/^(), but reverse engineering the pda is not something I
would be likely to enjoy. If there is no doc, are the original
yacc and lex files available?
<div>
<br>
</div>
<div>On a related note, would adding a new primitive function,
say floor to the parser, be as simple as adding </div>
<div><br>
</div>
<div>inline double floor_wrapper (double x) { return floor(x) ;
}<br>
</div>
<div>
<br>
</div>
<div>around line 770 of CoinModelUseful2 then adding </div>
<div><br>
</div>
<div>{"floor", floor_wrapper},<br>
</div>
<div><br>
</div>
<div>to the arith_fncts array?</div>
<div><br>
</div>
<div>It appears to work, but I am loath to go around monkeying
with yacc output.</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Clp mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a>
</pre>
</blockquote>
<br>
</body>
</html>