UNPKG

@lcap/nasl-parser

Version:

Take Nasl text to Nasl AST with the help of generalized parsing.

91 lines (90 loc) 2.84 kB
{ "concept": "Logic", "name": "testIf", "params": [], "returns": [], "variables": [], "body": [ { "concept": "Start", "label": "开始", "folded": false, "offsetX": null, "offsetY": null }, { "concept": "IfStatement", "test": { "concept": "BinaryExpression", "left": { "concept": "NumericLiteral", "value": "100", "typeAnnotation": { "concept": "TypeAnnotation", "typeKind": "primitive", "typeNamespace": "nasl.core", "typeName": "Long" }, "folded": false, "offsetX": -42.8359375, "offsetY": 219 }, "right": { "concept": "NumericLiteral", "value": "200", "typeAnnotation": { "concept": "TypeAnnotation", "typeKind": "primitive", "typeNamespace": "nasl.core", "typeName": "Long" }, "folded": false, "offsetX": null, "offsetY": null }, "operator": "==", "folded": false, "offsetX": null, "offsetY": null }, "consequent": [ { "concept": "CallLogic", "uuid": "fba83b6203e7426e96280702418b1a2f", "calleeNamespace": "app.logics", "calleeName": "testIf", "handleError": false, "arguments": [], "folded": false, "offsetX": null, "offsetY": null } ], "alternate": [ { "concept": "CallLogic", "uuid": "ee66ce6617c9430ead4639db859764c5", "calleeNamespace": "app.logics", "calleeName": "testIf", "handleError": false, "arguments": [], "folded": false, "offsetX": null, "offsetY": null } ], "label": "条件分支", "folded": false, "offsetX": null, "offsetY": null }, { "concept": "End", "label": "结束", "folded": false, "offsetX": null, "offsetY": null } ], "playground": [] }