<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><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 face="Andale Mono" class=""><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 face="Andale Mono" class=""><span style="font-size: 14px;" class=""> static void yyunput (int c, register char * yy_bp )</span></font></div><div class=""><font face="Andale Mono" class=""><span style="font-size: 14px;" class=""> ^</span></font></div><div class=""><font face="Andale Mono" class=""><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 face="Andale Mono" class=""><span style="font-size: 14px;" class=""> static int input (void)</span></font></div><div class=""><font face="Andale Mono" class=""><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></body></html>