@lcap/nasl-parser
Version:
Take Nasl text to Nasl AST with the help of generalized parsing.
84 lines (83 loc) • 2.5 kB
JSON
{
"concept": "Logic",
"name": "jsonDeSe",
"params": [],
"returns": [],
"variables": [
{
"concept": "Variable",
"name": "variable1"
}
],
"body": [
{
"concept": "Start",
"label": "开始",
"folded": false
},
{
"concept": "CallLogic",
"uuid": "bcfbfb666ef642fcae0a42a0dca9348a",
"calleeNamespace": "nasl.util",
"calleeName": "jsonSerialize",
"label": "JSON 序列化",
"folded": false,
"handleError": false,
"arguments": [
{
"concept": "Argument",
"keyword": "arg",
"folded": false,
"expression": {
"concept": "NumericLiteral",
"value": "0",
"folded": false,
"offsetX": 257.68359375,
"offsetY": 179.75390625,
"typeAnnotation": {
"concept": "TypeAnnotation",
"typeKind": "primitive",
"typeNamespace": "nasl.core",
"typeName": "Long"
}
}
}
]
},
{
"concept": "CallLogic",
"uuid": "cf9398426f0a4e06be3bd52396f34a97",
"calleeNamespace": "nasl.util",
"calleeName": "jsonDeserialize",
"label": "JSON 反序列化",
"folded": false,
"handleError": false,
"typeArguments": [
{
"concept": "TypeAnnotation",
"typeKind": "primitive",
"typeNamespace": "nasl.core",
"typeName": "Decimal"
}
],
"arguments": [
{
"concept": "Argument",
"keyword": "arg",
"folded": false,
"expression": {
"concept": "StringLiteral",
"value": "123",
"folded": false
}
}
]
},
{
"concept": "End",
"label": "结束",
"folded": false
}
],
"playground": []
}