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"
(→Statements (Table 5)) |
|||
Line 3: | Line 3: | ||
== Statements (Table 5) == | == Statements (Table 5) == | ||
− | {| | + | {| border="1" cellspacing="1" cellpadding="1" width="400" |
|- | |- | ||
| bgcolor="#999999" align="center" | '''''Statements''''' | | bgcolor="#999999" align="center" | '''''Statements''''' | ||
Line 11: | Line 11: | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Variable declaration<sup>5</sup>'' | | bgcolor="#cccccc" | ''Variable declaration<sup>5</sup>'' | ||
− | | <br> | + | | <br>6d |
− | | <br> | + | | <br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Const declaration'' | | bgcolor="#cccccc" | ''Const declaration'' | ||
− | | <br> | + | | <br>done |
− | | <br> | + | | <br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Assignment'' | | bgcolor="#cccccc" | ''Assignment'' | ||
− | | <br> | + | | done<br> |
− | | done<br> | + | | done<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Move<sup>1</sup>'' | | bgcolor="#cccccc" | ''Move<sup>1</sup>'' | ||
− | | <br> | + | | <br>1d |
− | | <br> | + | | <br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Return'' | | bgcolor="#cccccc" | ''Return'' | ||
− | | <br> | + | | <br>done |
− | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352141 JS:Functions, Return]<br> | + | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352141 JS:Functions, Return]<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Function invocation'' | | bgcolor="#cccccc" | ''Function invocation'' | ||
− | | <br> | + | | <br>done |
| | | | ||
[https://bugs.eclipse.org/bugs/show_bug.cgi?id=352141 JS: Functions, Return] | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352141 JS: Functions, Return] | ||
− | Synchronous service invocation<br> | + | Synchronous service invocation<br> |
| | | | ||
− | REST Service invocation<br> | + | REST Service invocation<br> |
− | *XML Conversion {{bug|351892}}<br> | + | *XML Conversion {{bug|351892}}<br> |
− | *JSON Conversion {{bug|352581}}<br> | + | *JSON Conversion {{bug|352581}}<br> |
*invocation gen/rt {{bug|352588}}<br>SOAP Service invocation {{bug|352590}}<br> | *invocation gen/rt {{bug|352588}}<br>SOAP Service invocation {{bug|352590}}<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Call<sup>2</sup>'' | | bgcolor="#cccccc" | ''Call<sup>2</sup>'' | ||
− | | <br> | + | | <br> |
| | | | ||
REST Service invocation | REST Service invocation | ||
Line 59: | Line 59: | ||
*invocation gen/rt {{bug|346144}}<br> | *invocation gen/rt {{bug|346144}}<br> | ||
− | SOAP Service invocation {{bug|352591}}<br>Dedicated service invocation {{bug|352592}}<br>Proxy {{bug|346145}}<br> | + | SOAP Service invocation {{bug|352591}}<br>Dedicated service invocation {{bug|352592}}<br>Proxy {{bug|346145}}<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Label'' | | bgcolor="#cccccc" | ''Label'' | ||
− | | <br> | + | | <br> |
− | | done<br> | + | | done<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Transfer'' | | bgcolor="#cccccc" | ''Transfer'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Throw'' | | bgcolor="#cccccc" | ''Throw'' | ||
− | | <br> | + | | <br> |
− | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352140 JS:Throws]<br> | + | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352140 JS:Throws]<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Try'' | | bgcolor="#cccccc" | ''Try'' | ||
− | | <br> | + | | <br> |
− | | done<br> | + | | done<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Catch'' | | bgcolor="#cccccc" | ''Catch'' | ||
− | | <br> | + | | <br> |
| done | | done | ||
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Case'' | | bgcolor="#cccccc" | ''Case'' | ||
− | | <br> | + | | <br> |
− | | [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]<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> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''If'' | | bgcolor="#cccccc" | ''If'' | ||
− | | <br> | + | | <br> |
− | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352028 JS: If ]<br> | + | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352028 JS: If ]<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''While'' | | bgcolor="#cccccc" | ''While'' | ||
− | | <br> | + | | <br> |
− | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352029 JS: While]<br> | + | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352029 JS: While]<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''For'' | | bgcolor="#cccccc" | ''For'' | ||
− | | <br> | + | | <br> |
− | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352030 JS:For]<br> | + | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352030 JS:For]<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Foreach<sup>3</sup>'' | | bgcolor="#cccccc" | ''Foreach<sup>3</sup>'' | ||
− | | <br> | + | | <br> |
− | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352030 JS: Foreach]<br> | + | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352030 JS: Foreach]<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Exit'' | | bgcolor="#cccccc" | ''Exit'' | ||
− | | <br> | + | | <br> |
− | | done<br> | + | | done<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Continue'' | | bgcolor="#cccccc" | ''Continue'' | ||
− | | <br> | + | | <br> |
− | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352139 JS: Continue]<br> | + | | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=352139 JS: Continue]<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Empty statement (a semicolon)'' | | bgcolor="#cccccc" | ''Empty statement (a semicolon)'' | ||
− | | <br> | + | | <br> |
− | | done<br> | + | | done<br> |
| done<br> | | done<br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Add'' | | bgcolor="#cccccc" | ''Add'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Close'' | | bgcolor="#cccccc" | ''Close'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Delete'' | | bgcolor="#cccccc" | ''Delete'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Get'' | | bgcolor="#cccccc" | ''Get'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Replace'' | | bgcolor="#cccccc" | ''Replace'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Execute<sup>4</sup>'' | | bgcolor="#cccccc" | ''Execute<sup>4</sup>'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Prepare<sup>4</sup>'' | | bgcolor="#cccccc" | ''Prepare<sup>4</sup>'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''Open<sup>4</sup>'' | | bgcolor="#cccccc" | ''Open<sup>4</sup>'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
| bgcolor="#cccccc" | ''FreeSQL<sup>4</sup>'' | | bgcolor="#cccccc" | ''FreeSQL<sup>4</sup>'' | ||
− | | <br> | + | | <br> |
− | | N/S<br> | + | | N/S<br> |
| <br> | | <br> | ||
|- | |- | ||
− | | bgcolor="#cccccc" | ''Goto''<br> | + | | bgcolor="#cccccc" | ''Goto''<br> |
− | | <br> | + | | <br> |
| N/S | | N/S | ||
| N/S | | N/S | ||
|- | |- | ||
− | | bgcolor="#cccccc" | ''Set''<br> | + | | bgcolor="#cccccc" | ''Set''<br> |
− | | <br> | + | | <br> |
| N/S | | N/S | ||
| N/S | | N/S | ||
|- | |- | ||
− | | bgcolor="#cccccc" | ''Converse''<br> | + | | bgcolor="#cccccc" | ''Converse''<br> |
− | | <br> | + | | <br> |
| N/S | | N/S | ||
| N/S | | N/S | ||
|- | |- | ||
− | | bgcolor="#cccccc" | ''Display''<br> | + | | bgcolor="#cccccc" | ''Display''<br> |
− | | <br> | + | | <br> |
| N/S | | N/S | ||
| N/S | | N/S | ||
|- | |- | ||
− | | bgcolor="#cccccc" | ''Print''<br> | + | | bgcolor="#cccccc" | ''Print''<br> |
− | | <br> | + | | <br> |
| N/S | | N/S | ||
| N/S | | N/S | ||
|- | |- | ||
− | | bgcolor="#cccccc" | ''Forward''<br> | + | | bgcolor="#cccccc" | ''Forward''<br> |
− | | <br> | + | | <br> |
| N/S | | N/S | ||
| N/S | | N/S | ||
|- | |- | ||
− | | bgcolor="#cccccc" | ''Show''<br> | + | | bgcolor="#cccccc" | ''Show''<br> |
− | | <br> | + | | <br> |
| N/S | | N/S | ||
| N/S | | N/S | ||
|- | |- | ||
− | | bgcolor="#cccccc" | ''OpenUI''<br> | + | | bgcolor="#cccccc" | ''OpenUI''<br> |
− | | <br> | + | | <br> |
| N/S | | N/S | ||
| N/S | | N/S | ||
|} | |} | ||
− | '''Notes on Table 5'''<br> | + | '''Notes on Table 5'''<br> |
#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: | + | #<span style="background: 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,' | + | #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:59, 20 July 2011
Please see the parent of this page, EDT:EGL Language.
Statements (Table 5)
Statements | Core | JavaScript | Java |
Variable declaration5 | 6d |
|
done |
Const declaration | done |
|
done |
Assignment | done |
done |
done |
Move1 | 1d |
|
|
Return | done |
JS:Functions, Return |
done |
Function invocation | done |
Synchronous service invocation |
REST Service invocation
|
Call2 | |
REST Service invocation
SOAP Service invocation bug 352591 |
|
Label | |
done |
done |
Transfer | |
N/S |
|
Throw | |
JS:Throws |
done |
Try | |
done |
done |
Catch | |
done | done |
Case | |
JS: Case |
(preprocessor doesn't pass case statement, it breaks into a series of IF statements) - no work needed |
If | |
JS: If |
done |
While | |
JS: While |
done |
For | |
JS:For |
done |
Foreach3 | |
JS: Foreach |
|
Exit | |
done |
done |
Continue | |
JS: Continue |
done |
Empty statement (a semicolon) | |
done |
done |
Add | |
N/S |
|
Close | |
N/S |
|
Delete | |
N/S |
|
Get | |
N/S |
|
Replace | |
N/S |
|
Execute4 | |
N/S |
|
Prepare4 | |
N/S |
|
Open4 | |
N/S |
|
FreeSQL4 | |
N/S |
|
Goto |
|
N/S | N/S |
Set |
|
N/S | N/S |
Converse |
|
N/S | N/S |
Display |
|
N/S | N/S |
Print |
|
N/S | N/S |
Forward |
|
N/S | N/S |
Show |
|
N/S | N/S |
OpenUI |
|
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;.