Too much code duplication inside stratego2abox.

Submitted on 2 April 2008 at 14:30

On 2 April 2008 at 18:09 Jira commented:

STR-745, martin:
Interesting, how would that work? You want to compile the .pp rules to Stratego or something?

If you ask me, we could also just get rid of Stratego.pp and make stratego2abox extensible, but that will probably be a problem for external applications extending Stratego.pp.


On 2 April 2008 at 20:33 Jira commented:

STR-745, pierron:
I were thinking about using trm2adot from the libstratego-gpp to do it.
That implies to modify it a bit to handle pretty-printing extension.

trm2abox(override | tbl) =
override
<+ trm2abox-string(|tbl)
<+ trm2abox-int(|tbl)
<+ trm2abox-real(|tbl)
<+ trm2abox-list(override | tbl)
<+ trm2abox-appl(override | tbl)
<+ log(|Error(),"Cannot rewrite to box: ", )
; fail

Log in to post comments