dpmcore.services.syntax
Grammar-level validation of DPM-XL expressions. Requires no database — it only runs the ANTLR parser, so it can be used standalone.
SyntaxService
- class dpmcore.services.syntax.SyntaxService[source]
Bases:
objectValidate and parse DPM-XL expression syntax.
This service is stateless and does not require a database connection.
- validate(expression)[source]
Validate the syntax of expression.
Returns a
SyntaxResult— never raises on invalid syntax.- Return type:
- Parameters:
expression (str)