SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
research:jtransformer:api:java:pefs:3.0:inlinedt [2013/07/03 16:19]
127.0.0.1 external edit
research:jtransformer:api:java:pefs:3.0:inlinedt [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
 +----
  
 +=== inlinedT(#​id,​ #reference) ===
 +
 +This fact is used for preserving the original appearance of the source code after transformations. It declares that the declaration of a variable belongs to an [[inlineDeclarationT|inline declaration]].
 +
 +Supported since JTransformer 2.9.0.
 +
 +=== Arguments ===
 +== ==
 +**#id:** [[fieldT|fieldT]],​ [[localT|localT]]\\ ​
 +ID of the variable.
 +
 +**#​reference:​** [[fieldT|fieldT]],​ [[localT|localT]]\\ ​
 +Reference to the first variable in the inline declaration.
 +
 +=== Sample Java Source ===
 +== ==
 +<Code lang-java>​
 +...
 +int i, j, k;
 +...
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +==  ==
 +<Code lang-prolog>​
 +fieldT(#​firstField, ​ #parent, #type, '​i',​ null).
 +fieldT(#​secondField,​ #parent, #type, '​j',​ null).
 +fieldT(#​thirdField, ​ #parent, #type, '​k',​ null).
 +inlineDeclarationT(#​firstField,​ [#​secondField,​ #​thirdField]).
 +inlinedT(#​secondField,​ #​firstField).
 +inlinedT(#​thirdField,​ #​firstField).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_relation('​Java',​inlinedT,​[
 +     ​ast_arg(id, ​    ​mult(1,​1,​no ), id,   ​[fieldT,​ localT]),
 +     ​ast_arg(ref, ​   mult(1,1,no ), id,   ​[fieldT,​ localT]) ​
 +]).
 +</​Code>​
research/jtransformer/api/java/pefs/3.0/inlinedt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019