[Ovmsdev] yacc/lex on component/dbc
Michael Balzer
dexter at expeedo.de
Fri Nov 23 23:23:16 HKT 2018
Builds fine on Linux with flex & bison, which I think come with those wrappers on most distributions.
Regards,
Michael
Am 23.11.18 um 05:38 schrieb Mark Webb-Johnson:
>
> 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.
>
> I have committed a stub for this (into components/dbc). It compiles for me with two warnings:
>
> /components/dbc/yacclex/dbc_tokeniser.c:1630:17: warning: 'yyunput' defined but not used [-Wunused-function]
> static void yyunput (int c, register char * yy_bp )
> ^
> components/dbc/yacclex/dbc_tokeniser.c:1675:16: warning: 'input' defined but not used [-Wunused-function]
> static int input (void)
> ^
>
>
> Those warnings are acceptable, and will be resolved when the full implementation comes.
>
> * On my mac it worked fine
> * On Linux, I had to install bison and setup a /usr/bin/yacc wrapper
> * I haven’t tried at all on windows
>
>
> 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.
>
> Regards, Mark.
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20181123/48137cc6/attachment.htm>
More information about the OvmsDev
mailing list