Notice: this Wiki will be going read only early in 2024 and edits will no longer be 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 13: | Line 13: | ||
| <br> | | <br> | ||
| <br> | | <br> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Const declaration'' | | bgcolor="#cccccc" | ''Const declaration'' | ||
| <br> | | <br> | ||
| <br> | | <br> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Assignment'' | | bgcolor="#cccccc" | ''Assignment'' | ||
| <br> | | <br> | ||
| done<br> | | done<br> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Move<sup>1</sup>'' | | bgcolor="#cccccc" | ''Move<sup>1</sup>'' | ||
Line 33: | Line 33: | ||
| <br> | | <br> | ||
| [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> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Function invocation'' | | bgcolor="#cccccc" | ''Function invocation'' | ||
Line 66: | Line 66: | ||
| <br> | | <br> | ||
| done<br> | | done<br> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Transfer'' | | bgcolor="#cccccc" | ''Transfer'' | ||
Line 76: | Line 76: | ||
| <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> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Try'' | | bgcolor="#cccccc" | ''Try'' | ||
| <br> | | <br> | ||
| done<br> | | done<br> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Catch'' | | bgcolor="#cccccc" | ''Catch'' | ||
| <br> | | <br> | ||
| done | | done | ||
− | | | + | | 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> | ||
− | | <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> | ||
− | | <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> | ||
− | | <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> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Foreach<sup>3</sup>'' | | bgcolor="#cccccc" | ''Foreach<sup>3</sup>'' | ||
Line 116: | Line 116: | ||
| <br> | | <br> | ||
| done<br> | | done<br> | ||
− | | <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> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Empty statement (a semicolon)'' | | bgcolor="#cccccc" | ''Empty statement (a semicolon)'' | ||
| <br> | | <br> | ||
| done<br> | | done<br> | ||
− | | <br> | + | | done<br> |
|- | |- | ||
| bgcolor="#cccccc" | ''Add'' | | bgcolor="#cccccc" | ''Add'' |
Revision as of 13:48, 20 July 2011
Please see the parent of this page, EDT:EGL Language.
Statements (Table 5)
Statements | Core | JavaScript | Java |
Variable declaration5 | |
|
done |
Const declaration | |
|
done |
Assignment | |
done |
done |
Move1 | |
|
|
Return | |
JS:Functions, Return |
done |
Function invocation | |
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;.