Skip to main content
Version: 3.6

Block Block 语句

1. 结构声明

class Block extends LogicItem {
logicItems: Array<LogicItem>;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "Block",
"logicItems": [
{
"concept": "Assignment",
"label": "赋值",
"left": {
"concept": "Identifier",
"namespace": "",
"name": "result"
},
"right": {
"concept": "NullLiteral"
}
},
{
"concept": "CallLogic",
"uuid": "11fe6dacbd3f42749c14c272fad6ffbb",
"calleeNamespace": "nasl.logging",
"calleeName": "INFO",
"shortcut": true,
"arguments": [
{
"concept": "Argument",
"keyword": "模板",
"expression": {
"concept": "StringLiteral",
"value": "其它情况"
}
}
]
}
]
}

对应的代码如下:

{
result = null;
nasl::logging::INFO('其它情况');
}