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.
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.