Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EDT:EGL Language Statements"
Line 3: | Line 3: | ||
== Statements (Table 5) == | == Statements (Table 5) == | ||
− | {| | + | {| cellspacing="1" cellpadding="1" border="1" style="width: 903px; height: 1543px;" |
|- | |- | ||
| bgcolor="#999999" align="center" | '''''Statements''''' | | bgcolor="#999999" align="center" | '''''Statements''''' | ||
Line 12: | Line 12: | ||
| bgcolor="#cccccc" | ''Variable declaration<sup>5</sup>'' | | bgcolor="#cccccc" | ''Variable declaration<sup>5</sup>'' | ||
| <br>6d | | <br>6d | ||
− | | <br> | + | | done<br> |
| done<br> | | done<br> | ||
|- | |- | ||
Line 32: | Line 32: | ||
| bgcolor="#cccccc" | ''Return'' | | bgcolor="#cccccc" | ''Return'' | ||
| <br>done | | <br>done | ||
− | | | + | | done<br>(see Function invocation below)<br> |
| done<br> | | done<br> | ||
|- | |- | ||
Line 38: | Line 38: | ||
| <br>done | | <br>done | ||
| | | | ||
− | [https://bugs.eclipse.org/bugs/show_bug.cgi?id= | + | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352780 JS:Function Invocation tests]<br> |
Synchronous service invocation | Synchronous service invocation | ||
Line 87: | Line 87: | ||
| bgcolor="#cccccc" | ''Case'' | | bgcolor="#cccccc" | ''Case'' | ||
| <br>done | | <br>done | ||
− | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352031 JS: Case]<br> | + | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352031 JS: Case]0.2d<br> |
| (preprocessor doesn't pass case statement, it breaks into a series of IF statements) - no work needed<br> | | (preprocessor doesn't pass case statement, it breaks into a series of IF statements) - no work needed<br> | ||
|- | |- | ||
Line 215: | Line 215: | ||
#EDT won't support every variation of RBD's move statement. There will be support for '''move byName''', '''move for''', and '''move for all'''. A move statement without one of the additional keywords is only allowed between two references, and it results in the target being assigned a copy of the source's value. If/when we support structured records, we might not support '''move byName''' on them because of the complex (unclean) design. | #EDT won't support every variation of RBD's move statement. There will be support for '''move byName''', '''move for''', and '''move for all'''. A move statement without one of the additional keywords is only allowed between two references, and it results in the target being assigned a copy of the source's value. If/when we support structured records, we might not support '''move byName''' on them because of the complex (unclean) design. | ||
#EDT doesn't have called programs, but services and native programs can be called. | #EDT doesn't have called programs, but services and native programs can be called. | ||
− | #<span style="background: rgb(255,165,0)">EDT's foreach statement will support iterating over an array.</span> | + | #<span style="background: none repeat scroll 0% 0% rgb(255, 165, 0);">EDT's foreach statement will support iterating over an array.</span> |
#Support for these statements is tentative, pending the design for JPA in EDT. | #Support for these statements is tentative, pending the design for JPA in EDT. | ||
− | #New syntax will allow setting annotations on declarations without the use of curly braces. In RBD we usually do '''<span style="font-family: times,'times new roman',serif">x int {myAnnotation = 3};</span>''' but another way to do the same thing is '''<span style="font-family: times,'times new roman',serif">x int {@myAnnotation{3}};</span>'''. In EDT we will allow that to be outside of curly braces and before the declaration, for example '''<span style="font-family: times,'times new roman',serif">@myAnnotation{3} x int;</span>'''. | + | #New syntax will allow setting annotations on declarations without the use of curly braces. In RBD we usually do '''<span style="font-family: times,'times new roman',serif;">x int {myAnnotation = 3};</span>''' but another way to do the same thing is '''<span style="font-family: times,'times new roman',serif;">x int {@myAnnotation{3}};</span>'''. In EDT we will allow that to be outside of curly braces and before the declaration, for example '''<span style="font-family: times,'times new roman',serif;">@myAnnotation{3} x int;</span>'''. |
<br> | <br> |
Revision as of 14:33, 21 July 2011
Please see the parent of this page, EDT:EGL Language.
Statements (Table 5)
Statements | Core | JavaScript | Java |
Variable declaration5 | 6d |
done |
done |
Const declaration | done |
|
done |
Assignment | done |
done |
done |
Move1 | 1d |
|
2d |
Return | done |
done (see Function invocation below) |
done |
Function invocation | done |
Synchronous service invocation |
REST Service invocation
SOAP Service invocation bug 352590(3d) |
Call2 | done |
REST Service invocation
SOAP Service invocation bug 352591(3d) |
5d |
Label | 1d (remove label field from ConditionalStatement) |
done |
done |
Transfer | done |
N/S |
1d |
Throw | done |
JS:Throws |
done |
Try | done |
done |
done |
Case | done |
JS: Case0.2d |
(preprocessor doesn't pass case statement, it breaks into a series of IF statements) - no work needed |
If | done |
JS: If |
done |
While | done |
JS: While |
done |
For | done |
JS:For |
done |
Foreach3 | 1d |
JS: Foreach |
1d |
Exit | done |
done |
done |
Continue | done |
JS: Continue |
done |
Empty statement (a semicolon) | done |
done |
done |
Add | done |
N/S |
1d |
Close | done |
N/S |
0.5d |
Delete | done |
N/S |
1d |
Get | done |
N/S |
2d |
Replace | done |
N/S |
2d |
Execute4 | done? |
N/S |
1d |
Prepare4 | done? |
N/S |
1d |
Open4 | done? |
N/S |
2d |
FreeSQL4 | done? |
N/S |
0.5d |
Goto |
done |
N/S | N/S |
Set |
done |
N/S | N/S |
Converse |
done |
N/S | N/S |
Display |
done |
N/S | N/S |
Print |
done |
N/S | N/S |
Forward |
done |
N/S | N/S |
Show |
done |
N/S | N/S |
OpenUI |
done |
N/S | N/S |
Notes on Table 5
- EDT won't support every variation of RBD's move statement. There will be support for move byName, move for, and move for all. A move statement without one of the additional keywords is only allowed between two references, and it results in the target being assigned a copy of the source's value. If/when we support structured records, we might not support move byName on them because of the complex (unclean) design.
- EDT doesn't have called programs, but services and native programs can be called.
- EDT's foreach statement will support iterating over an array.
- Support for these statements is tentative, pending the design for JPA in EDT.
- New syntax will allow setting annotations on declarations without the use of curly braces. In RBD we usually do x int {myAnnotation = 3}; but another way to do the same thing is x int {@myAnnotation{3}};. In EDT we will allow that to be outside of curly braces and before the declaration, for example @myAnnotation{3} x int;.