Closed tkw1536 closed 5 years ago
This PR adds syntactic sugar to use OpenMath as a DSL inside Python.
For example:
>>> from openmath.helpers import CDBaseHelper >>> cd = CDBaseHelper('http://www.openmath.org/cd') >>> one_plus_one = cd.arith1.plus(1, 1) >>> print(one_plus_one) OMApplication( elem=OMSymbol(name='plus', cd='arith1', cdbase='http://www.openmath.org/cd'), arguments=[ OMInteger(integer=1), OMInteger(integer=1)])
This PR adds syntactic sugar to use OpenMath as a DSL inside Python.
For example: