TRLC is a domain-specific language developed at BMW for writing (and linking) requirements with meta-data.
The repository contains:
The language reference manual for TRLC. Previous versions are also available.
A pure Python reference implementation of TRLC.
The implementation is not very fast, but designed to be pedantically correct in following the language definition. The tools also include a powerful static analysis tool to find issues with types and user-defined check rules.
In a .rsl file, a type may be used before the place where it is
declared in the same file. This is allowed for:
Example:
package demo
type Requirement {
position Coordinate
}
tuple Coordinate {
x Integer
y Integer
}
This is valid: Requirement uses Coordinate before the line that declares it.
The following are not supported:
A contains B, B contains
A). Declare the inner tuple first.Note:
The Python implementation can be used for several purposes:
It can be used to validate other TRLC implementations.
It can be used to validate a body of requirements (e.g. a CI check that all requirements are well formed)
The API can be used to write other tools based on TRLC (for example a tool to render the requirements in HTML, a tool to diff requirements or perform an impact analysis, or a tool to perform software traceability, etc.)
Special thanks to Florian Schanda for his many valuable contributions to this repository.