SDA SE Wiki

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

User Tools

Site Tools



projectS(#id, 'projectName', 'localPath', 'outputProjectName', 'outputProjectLocalPath')

Represents an Eclipse project.

The suffix S indicates that this is an elemement of the language independent representation of source information (S = Source), not an element of an Abstract Syntax Tree (which has the suffix T – for Tree). Projects, source folders, and files fall into the same category.

Arguments

#id: id
the unique Identity of this project.

'projectName': atom
the name of the Eclipse project.

'localPath': atom
the absolute path of the project in the local file system (represented as a portable string).

'outputProjectName': atom
the name of output project into which the transformed code is generated.

'outputProjectLocalPath': atom
the absolute path of the output project in the local file system (represented as a portable string)

Its PEF Representation

projectS(1001,'Demo1','C:/eclipse/workspace/Demo1','Demo1-output','C:/eclipse/workspace/Demo1-output')

AST Specification

ast_node_def('Source',projectS,[
     ast_arg(id,    mult(1,1,no ), id,   [projectS]),
     ast_arg(name,  mult(1,1,no ), attr, [atom]),
     ast_arg(path,  mult(1,1,no ), attr, [atom]),
     ast_arg(outputProjectName,  mult(1,1,no ), id,   [atom]),
     ast_arg(outputProjectPath,  mult(1,1,no ), attr, [atom])
]).
research/jtransformer/api/meta/pefs/projects.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2024