Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "EDT:EGL Language Statements"

Line 3: Line 3:
 
== Statements (Table 5)  ==
 
== Statements (Table 5)  ==
  
{| cellspacing="1" cellpadding="1" border="1" width="800"
+
{| border="1" cellspacing="1" cellpadding="1" width="800"
 
|-
 
|-
 
| 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>  
+
| <br>
 
| done<br>
 
| done<br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Const declaration''  
 
| bgcolor="#cccccc" | ''Const declaration''  
 
| <br>done  
 
| <br>done  
| <br>  
+
| <br>
 
| done<br>
 
| done<br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Assignment''  
 
| bgcolor="#cccccc" | ''Assignment''  
| done<br>  
+
| done<br>
| done<br>  
+
| done<br>
 
| done<br>
 
| done<br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Move<sup>1</sup>''  
 
| bgcolor="#cccccc" | ''Move<sup>1</sup>''  
 
| <br>1d  
 
| <br>1d  
| <br>  
+
| <br>
 
| <br>
 
| <br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Return''  
 
| bgcolor="#cccccc" | ''Return''  
 
| <br>done  
 
| <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>
 
|-
 
|-
Line 40: Line 40:
 
[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  
+
Synchronous service invocation
  
 
|  
 
|  
REST Service invocation<br>  
+
REST Service invocation<br>
  
*XML Conversion {{bug|351892}}(3d)<br>  
+
*XML Conversion {{bug|351892}}(3d)<br>
*JSON Conversion {{bug|352581}}(3d)<br>  
+
*JSON Conversion {{bug|352581}}(3d)<br>
 
*invocation gen/rt {{bug|352588}}(10d)
 
*invocation gen/rt {{bug|352588}}(10d)
SOAP Service invocation {{bug|352590}}(3d)<br> <br>
+
 
 +
SOAP Service invocation {{bug|352590}}(3d)<br><br>
 +
 
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Call<sup>2</sup>''  
 
| bgcolor="#cccccc" | ''Call<sup>2</sup>''  
| <br>  
+
| <br>done
 
|  
 
|  
 
REST Service invocation  
 
REST Service invocation  
Line 59: Line 61:
 
*invocation gen/rt {{bug|346144}}(5d)<br>
 
*invocation gen/rt {{bug|346144}}(5d)<br>
  
SOAP Service invocation {{bug|352591}}(3d)<br>Dedicated service invocation {{bug|352592}}(3d)<br>Proxy {{bug|346145}}(5d)<br>  
+
SOAP Service invocation {{bug|352591}}(3d)<br>Dedicated service invocation {{bug|352592}}(3d)<br>Proxy {{bug|346145}}(5d)<br>
  
 
| <br>
 
| <br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Label''  
 
| bgcolor="#cccccc" | ''Label''  
| <br>  
+
| 1d (remove label field from ConditionalStatement)<br>
| done<br>  
+
| done<br>
 
| done<br>
 
| done<br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Transfer''  
 
| bgcolor="#cccccc" | ''Transfer''  
| <br>  
+
| <br>done
| N/S<br>  
+
| N/S<br>
 
| <br>
 
| <br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Throw''  
 
| bgcolor="#cccccc" | ''Throw''  
| <br>  
+
| <br>done
| [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>  
+
| done<br>
| done<br>  
+
| done<br>
 
| done<br>
 
| done<br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Catch''  
 
| bgcolor="#cccccc" | ''Catch''  
| <br>  
+
| <br>done
 
| done  
 
| done  
 
| done<br>
 
| done<br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Case''  
 
| bgcolor="#cccccc" | ''Case''  
| <br>  
+
| <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]<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>done
| [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>  
+
| done<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>  
+
| done<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
| done<br>  
+
| done<br>
 
| done<br>
 
| done<br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Continue''  
 
| bgcolor="#cccccc" | ''Continue''  
| <br>  
+
| <br>done
| [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>  
+
| done<br>
| done<br>  
+
| done<br>
 
| done<br>
 
| done<br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Add''  
 
| bgcolor="#cccccc" | ''Add''  
| <br>  
+
| done<br>
| N/S<br>  
+
| N/S<br>
 
| <br>
 
| <br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Close''  
 
| bgcolor="#cccccc" | ''Close''  
| <br>  
+
| done<br>
| N/S<br>  
+
| N/S<br>
 
| <br>
 
| <br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Delete''  
 
| bgcolor="#cccccc" | ''Delete''  
| <br>  
+
| <br>done
| N/S<br>  
+
| N/S<br>
 
| <br>
 
| <br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Get''  
 
| bgcolor="#cccccc" | ''Get''  
| <br>  
+
| done<br>
| N/S<br>  
+
| N/S<br>
 
| <br>
 
| <br>
 
|-
 
|-
 
| bgcolor="#cccccc" | ''Replace''  
 
| bgcolor="#cccccc" | ''Replace''  
| <br>  
+
| <br>done
| 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>done
 
| N/S  
 
| N/S  
 
| N/S
 
| N/S
 
|-
 
|-
| bgcolor="#cccccc" | ''Set''<br>  
+
| bgcolor="#cccccc" | ''Set''<br>
| <br>  
+
| <br>done
 
| N/S  
 
| N/S  
 
| N/S
 
| N/S
 
|-
 
|-
| bgcolor="#cccccc" | ''Converse''<br>  
+
| bgcolor="#cccccc" | ''Converse''<br>
| <br>  
+
| done<br>
 
| N/S  
 
| N/S  
 
| N/S
 
| N/S
 
|-
 
|-
| bgcolor="#cccccc" | ''Display''<br>  
+
| bgcolor="#cccccc" | ''Display''<br>
| <br>  
+
| done<br>
 
| N/S  
 
| N/S  
 
| N/S
 
| N/S
 
|-
 
|-
| bgcolor="#cccccc" | ''Print''<br>  
+
| bgcolor="#cccccc" | ''Print''<br>
| <br>  
+
| done<br>
 
| N/S  
 
| N/S  
 
| N/S
 
| N/S
 
|-
 
|-
| bgcolor="#cccccc" | ''Forward''<br>  
+
| bgcolor="#cccccc" | ''Forward''<br>
| <br>  
+
| <br>done
 
| N/S  
 
| N/S  
 
| N/S
 
| N/S
 
|-
 
|-
| bgcolor="#cccccc" | ''Show''<br>  
+
| bgcolor="#cccccc" | ''Show''<br>
| <br>  
+
| <br>done
 
| N/S  
 
| N/S  
 
| N/S
 
| N/S
 
|-
 
|-
| bgcolor="#cccccc" | ''OpenUI''<br>  
+
| bgcolor="#cccccc" | ''OpenUI''<br>
| <br>  
+
| <br>done
 
| 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: none repeat scroll 0% 0% rgb(255, 165, 0);">EDT's foreach statement will support iterating over an array.</span>  
+
#<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,'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 16:04, 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

JS: Functions, Return

Synchronous service invocation

REST Service invocation

SOAP Service invocation bug 352590(3d)

Call2
done

REST Service invocation

SOAP Service invocation bug 352591(3d)
Dedicated service invocation bug 352592(3d)
Proxy bug 346145(5d)


Label 1d (remove label field from ConditionalStatement)
done
done
Transfer
done
N/S

Throw
done
JS:Throws
done
Try done
done
done
Catch
done
done done
Case
done
JS: Case
(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
JS: Foreach

Exit
done
done
done
Continue
done
JS: Continue
done
Empty statement (a semicolon) done
done
done
Add done
N/S

Close done
N/S

Delete
done
N/S

Get done
N/S

Replace
done
N/S

Execute4
N/S

Prepare4
N/S

Open4
N/S

FreeSQL4
N/S

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

  1. 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.
  2. EDT doesn't have called programs, but services and native programs can be called.
  3. EDT's foreach statement will support iterating over an array.
  4. Support for these statements is tentative, pending the design for JPA in EDT.
  5. 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;.


Back to the top