[Ovmsdev] yacc/lex on component/dbc
mark at webb-johnson.net
Mon Nov 26 09:27:04 HKT 2018
Pulled it. A few minor fixes that I hope work for you:
HOSTTYPE is not universally used, so I re-worked that (defaulting to yacc)
Bison doesn’t seem to support YY_NO_UNPUT, but instead uses '%option nounput’, so I used both
Also added some documentation in the readme file. Hopefully this is all ok now. I am proceeding with the actual implementation.
> On 26 Nov 2018, at 2:53 AM, Craig Leres <leres at xse.com> wrote:
> On 11/25/18 4:49 AM, Mark Webb-Johnson wrote:
>> Or try bison?
> I already had bison installed so I changed the dbc component.mk file to use it on FreeBSD. Here's the pull request:
> As noted I think it would make more sense for YACC (and probably LEX) to be defined at a higher level. I couldn't figure out where CC and friends are defined so took the easy way out.
> While I was making changes I added the YY_NO_INPUT and YY_NO_UNPUT defines to dbc_tokeniser.l.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OvmsDev