<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Builds fine on Linux with flex & bison, which I think come with
those wrappers on most distributions.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 23.11.18 um 05:38 schrieb Mark
Webb-Johnson:<br>
</div>
<blockquote type="cite"
cite="mid:C9393E5D-63FE-46F5-AD9C-B07805A22CE5@webb-johnson.net">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class=""><br class="">
</div>
<div class="">I am trying to move the hand-crafted dbc parser
(which is pretty crappy) to a full featured parser based on
yacc/lex. But I’m concerned this will be complex to build
(requiring yacc and lex on the build systems). Given that esp
idf already uses this (for Kconfig), it should be ok.</div>
<div class=""><br class="">
</div>
<div class="">I have committed a stub for this (into
components/dbc). It compiles for me with two warnings:</div>
<div class=""><br class="">
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding:
0px;" class="">
<div class="">
<div class=""><font class="" face="Andale Mono"><span
style="font-size: 14px;" class="">/components/dbc/yacclex/dbc_tokeniser.c:1630:17:
warning: 'yyunput' defined but not used
[-Wunused-function]</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-size: 14px;" class=""> static void
yyunput (int c, register char * yy_bp )</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-size: 14px;" class=""> ^</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-size: 14px;" class="">components/dbc/yacclex/dbc_tokeniser.c:1675:16:
warning: 'input' defined but not used
[-Wunused-function]</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-size: 14px;" class=""> static int input
(void)</span></font></div>
<div class=""><font class="" face="Andale Mono"><span
style="font-size: 14px;" class=""> ^</span></font></div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Those warnings are acceptable, and will be resolved
when the full implementation comes.</div>
<div class=""><br class="">
</div>
<div class="">
<ul class="MailOutline">
<li class="">On my mac it worked fine</li>
<li class="">On Linux, I had to install bison and setup a
/usr/bin/yacc wrapper</li>
<li class="">I haven’t tried at all on windows</li>
</ul>
</div>
<div class=""><br class="">
</div>
<div class="">Could you guys check, and let me know if you see any
issues? In particular, on windows. If no issues, I’ll proceed
and finish up the grammar and implementation.</div>
<div class=""><br class="">
</div>
<div class="">Regards, Mark.</div>
<div class=""><br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="160">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>