ANTAREX API

Clava API

LARA API

LARA Common Language API

Global Functions

declareIsolateFunctionOrMethod

declareIsolateFunctionOrMethod($funcOrMethodDecl, b)

Declare a new function or method in a new file defined by $funcOrMethodDecl.

Parameters

$funcOrMethodDecl: any
b: any

declareNewIsolateCodeFunctionOrMethod

declareNewIsolateCodeFunctionOrMethod($stmt, name)

Declare a new function(or method) in a new file to encapsulate the code of a statement ($stmt).
The name of the function is a parameter.

Parameters

$stmt: any
name: any

genDeclCreatedObjects

genDeclCreatedObjects($target, tabNewNames)

Declare the created functions/methods, copies of $target but with new names (tabNewNames[])

Parameters

$target: any
tabNewNames: any

genIsolateCodeVersions

genIsolateCodeVersions($target, n)

Generates n copies of the $target with a new name.
Each copy is generated in a new file.

Parameters

$target: any
n: any

Returns

any - the table that contains the new names of the function/method.

genSelectorCode

genSelectorCode($target, tabNewNames)

Generate the selector of the version to use for the isolated function§method $target.

Parameters

$target: any
tabNewNames: any

getAssociatedName

getAssociatedName($target)

Parameters

$target: any

getCurrentExtractedCodeIdentifier

getCurrentExtractedCodeIdentifier()

Returns

any - the current identifier for the extraction of code.

getExtractCodeSymbolSelectedId

getExtractCodeSymbolSelectedId()

Returns

any - the current identifier of the selector for the extraction of code.

isBeginIsolateCodePragma

isBeginIsolateCodePragma($apragma)

Parameters

$apragma: any

Returns

any - true if a pragma ($apragma) is named $EXTRACT_CODE_PRAGMA

isBeginIsolatePragma

isBeginIsolatePragma($apragma)

Parameters

$apragma: any

Returns

any - true if a pragma ($apragma) is named $ISOLATE_PRAGMA

mkNewExtractedCodeIdentifier

mkNewExtractedCodeIdentifier()

Returns

any - a new identifier for the extraction of code. The created name is stored in the global variable $CURRENT_ID_EXTRACTED_CODE. The name is created from the global variables $EXTRACT_CODE_PRAGMA and $CPT_EXTRACTED_CODE.

replaceCodeByCall

replaceCodeByCall($stmt, $name, $params)

Replace a stamement ($stmt) by a call to $name + $params.

Parameters

$stmt: any
$name: any
$params: any