OpenCyphal / pydsdl

Cyphal DSDL processing front end implemented in Python
https://opencyphal.org
MIT License
11 stars 9 forks source link

Implement a spec-adhering parser backend #15

Closed pavel-kirienko closed 5 years ago

pavel-kirienko commented 5 years ago

Currently, PyDSDL uses regular expressions to parse definitions, and eval() to process initialization expressions. This approach is simple and works acceptably, but the resulting parser is also capable of properly processing definitions that are not well-formed according to the specification; this is undesirable for a reference implementation. Therefore, a stricter parser is needed.