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

Key: STR-550
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Eelco Visser
Reporter: Eelco Visser
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

Assignment operator

Created: 2006-04-07 09:23   Updated: 2008-03-31 20:44
Component/s: Language concepts
Affects Version/s: None
Fix Version/s: 0.17

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


 Description  « Hide
Dave Herman wrote:

It would be nice to have a syntactic form := defined as follows:

     p1 := p2

is defined by

     !p2 => p1

where p1 and p2 are matching patterns.

For example, the common pattern of binding a new variable to the result
of applying a strategy:

     MyRule: x -> y
       where !<foo>(x,y) => z
           ; etc

would be more clearly expressed as:

     MyRule: x -> y
       where z := <foo>(x, y)
           ; etc.


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.