Re:Beautiful mini language for outputing HTML in Python
by prodigal_erik on Tuesday December 29, 2009 @04:08PM
(#1021316)
I'm disappointed they resorted to a one-way preprocessor. Is it really not feasible to make a first-class domain-specific language like this in Python?
[ Parent
| on HN ]
Re:Beautiful mini language for outputing HTML in Python
by showell on Tuesday December 29, 2009 @04:30PM
(#1021365)
The reason I made SHPAML a one-way preprocessor is that my use cases haven't yet given me a compelling reason to write a round tripper, and preprocessing is simple to automate.
I do not know what your criteria are for judging a "first-class" DSL in Python, so I cannot comment on the feasibility. My goal was to create a simple markup language that maps well to HTML and plays nice with templates. SHPAML does that.
Re:Beautiful mini language for outputing HTML in Python
by prodigal_erik on Thursday December 31, 2009 @04:03AM
(#1024061)
Sorry, I misread the title "Beautiful mini language for outputing HTML in Python" as a DSL to be embedded in Python code rather than a separate text file (which is actually language agnostic after the preprocessor is done).
Re:Beautiful mini language for outputing HTML in Python
by showell on Thursday December 31, 2009 @06:38PM
(#1025204)
No worries. I am actually curious to your thoughts about DSLs. I love Python, but it is not really optimized for DSLs. You can obviously implement a DSL in Python, but embedding it is another story.