I want to construct a domain-specific language as a superset of Python. Cryptic commands like
f7:10y=x^2
designed to minimize typing shall be parsed into plain Python
for k in range(7,10):
f[k].set_y( expr='x^2' )
before being executed. Probably, the command-line interface shall be IPython.
What would be an appropriate architecture: Shall I implement the cryptic-to-plain-Python translation in the IPython command-line shell or in its kernel daemon? Are there helpful libraries / tutorials / examples?
Or more generically: Are there examples how to add complex syntactic sugar to Python?