EFeru / DbcParser

.NET CAN bus dbc file parser
MIT License
76 stars 28 forks source link

Question on INextLineProvider #36

Closed lnetx closed 1 year ago

lnetx commented 1 year ago

I have a question, The INextLineProvider type is not used in ILineParser type ,so why TryParse function has a type of INextLineProvider parameter , is for what ?

Whitehouse112 commented 1 year ago

Hi, a comment in a DBC file can have multiple lines, so the CommentLineParser needs to be able to read multiple lines (if any) and uses the INextLineProvider in its own TryParse's implementation