can-go icon indicating copy to clipboard operation
can-go copied to clipboard

Make compile public

Open RangelReale opened this issue 1 year ago • 3 comments

To be able to use the dbc file to decode messages, it must be parsed and its defs must be consolidated. This is done in the internal generate package, so it can't be used by external programs.

This PR makes the compilation part a public package.

RangelReale avatar Dec 27 '23 10:12 RangelReale

Can a smaller part of the generate package be public? Do you have some ideas on this?

maxekman avatar Jan 16 '24 14:01 maxekman

My need is to decode CAN messages using a DBC file, but for that I need the compiler to consolidate all the information, but today it is limited to the code generator, I don't know if you want to have this possibility in this library.

Just returning the Defs and the warnings probably should be enough.

RangelReale avatar Jan 16 '24 16:01 RangelReale

Hello @RangelReale! We're actually duplicating this code internally as well, so I think it makes sense that we make parts of it public.

I'll look into it a bit more in the close future!

Jassob avatar May 27 '24 15:05 Jassob