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

Both sides previous revision Previous revision
Next revision
Previous revision
research:jtransformer:api:java:pefs:4.0:basictypet [2014/07/07 15:25]
andreas.becker created
research:jtransformer:api:java:pefs:4.0:basictypet [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​prologast_bodypef_index&​fullpage&​nofooter}}
  
 +=== basicTypeT(#​id,​ '​name'​) ​ ===
 +
 +Each basic type (void, int, etc.) is represented by exactly one basicTypeT fact. 
 +
 +=== Arguments ===
 +
 +==  ==
 +**#id:** id\\  ​
 +the unique ID assigned to this basic type.
 +
 +**'​name':​** void | boolean | byte | char | short | int | long | float | double\\ ​
 +the name of the basic type that is represented by this fact.
 +
 +=== Sample Java Source ===
 +
 +==  ==
 +<Code lang-java>​
 +int m() {                                                             
 +    ...
 +}
 +</​Code>​
 +
 +
 +=== Its PEF Representation ===
 +
 +==  ==
 +<​Code>​
 +methodT(#​meth,​ ..., '​m',​ [], #int, [], ...).   
 +basicTypeT(#​int,​ int).
 +</​Code>​
 +
 +=== AST Specification ===
 +== ==
 +<​Code>​
 +ast_node_def('​Java',​basicTypeT,​[
 +    ast_arg(id, ​  ​mult(1,​1,​no ), id,   ​[basicTypeT]),​
 +    ast_arg(kind,​ mult(1,1,no ), attr, [atom])
 +]).
 +
 +</​Code>​
research/jtransformer/api/java/pefs/4.0/basictypet.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019