Stratego/XT JIRA  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STR-59
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Martin Bravenboer
Reporter: Martin Bravenboer
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
Stratego/XT

sdf syntax: seq/2 overloaded

Created: 2004-04-23 08:18   Updated: 2008-03-31 20:39
Component/s: None
Affects Version/s: None
Fix Version/s: 0.14

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Pretty-printing of SDF cannot even be done based on the constructor name and the arity. Seq is overloaded vor (... ...) and Lookahead sequences. Currently the Lookahead sequences are preferred.

Workaround for now: Don't use tuples.

 All   Comments   Work Log   Change History      Sort Order:
Martin Bravenboer [2004-04-23 08:28]
Possible solution: rename one of the constructors in sdf-ppfix.

Martin Bravenboer [2004-04-25 08:19]
The basic problem is that a seq needs to know its type. This type is based on the context of the seq. As a general solution interpretation of the ATerm against an abstract syntax can be considered. In this case the ATerm should then be interpreted against an RTG for SDF. These tools are available in stratego-regular. Type-based pretty-printing and rewriting can in some cases be very useful.

IRTG can currently just be imploded to an ATerm, loosing the type information. Maybe I should add an option to preserve the type in annotations.