-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converter tool for Rust #144
Comments
Dear @BlueAndi, currently there is no converter planned for Rust. It depends in your exact use case whether such a tool is good enough for you. Using regex has got the obvious disadvantage that the tool does not really parse the underlying language (Rust in your case). Hence edge cases might be overseen. Performance might also be an issue, if the regex becomes complicated and you have a lot of input files to read. It may also be tricky to qualify that tool in the context of ISO 26262. However, we have received requests to support a bunch of languages. That's why we have started to think about a regex-based solution. Feel free to share your thoughts on this topic. |
I think for a quick start, using user defined regex might be good enough. Usually you would like to see the trace to the unit. But the unit can address in the simple case the component or can be a function, even parameter for configuration. That makes it more complex. The tool qualification in the functional safety context will be a challenge for sure. Another idea could be using ANTLR as a base to generate language parsers. Its used to generate the abstract syntax tree (ast) for the language. The ast is then parsed to find the LOBSTER tags. A lot of language descriptions are already available or can be extended. The approach provides a perfect base for the tool qualification too. Currently we are only discussing tracing to source code, but tracing to architecture and design is not that far away on the wish list. :-) But this can be solved on trlc level by not only define requirement types, but define e.g. architecture specification element type and use the reference possibility. By using PlantUML you it perfect fits to treat architecture like code. ;-) A generic tool in python can address the common interchange format. Back to Rust, another quick approach is to extend the rust-analyzer tool, which is always up-to-date driven by the rust community. Its similar like using clang tools for C/C++. |
Is there any converter tool for Rust in progress, which creates the common interchange format for LOBSTER?
I would like avoid start thinking about how to implement it and someone else already started.
The text was updated successfully, but these errors were encountered: