After some heavy editing of a TS file I’ve now ended up with 477 task-rewrite projection rules in the generated Stratego file. Only a few of them are really relevant, but the older ones still persist. Some contain syntactical errors (due to editing and re-editing).

rules // projections
  task-rewrite :
	("proj477", FieldAccess(Var(wld_), _)) -> wld_
  
  task-rewrite :
	("proj476", String(wld_)) -> wld_
	
  task-rewrite :
	("proj475", String(__)) -> __
	
  task-rewrite :
	("proj474", String(_x)) -> _x
  
  task-rewrite :
	("proj473", String(x)) -> x
	
// ...

I want to get rid of these rules. Deleting the .generated.ts file has no effect; all superfluous projections are regenerated. Restarting Eclipse clears the superfluous projections, but subsequent edits will add new ones.

Submitted by D. Pelsmaeker on 7 July 2014 at 14:30

On 8 July 2014 at 18:55 Gabriël Konat commented:

Dynamic rules are used to generate projections, it seems they are not scoped in to-stratego in generate-instruct.str. I think this problem will be solved if you scope them.


On 12 June 2015 at 23:48 Jeff Smits commented:

Fixed in this PR

Log in to post comments