UNPKG

@lcap/nasl-parser

Version:

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

106 lines (105 loc) 3.39 kB
{ "concept": "Logic", "name": "testLogical", "params": [], "returns": [], "variables": [ { "concept": "Variable", "name": "variable1" } ], "body": [ { "concept": "Start", "label": "开始", "folded": false, "offsetX": null, "offsetY": null }, { "concept": "Assignment", "left": { "concept": "Identifier", "name": "variable1", "folded": false, "offsetX": null, "offsetY": null }, "right": { "concept": "BinaryExpression", "left": { "concept": "UnaryExpression", "argument": { "concept": "BinaryExpression", "left": { "concept": "BooleanLiteral", "value": "true", "folded": false, "offsetX": null, "offsetY": null }, "right": { "concept": "BooleanLiteral", "value": "false", "folded": false, "offsetX": null, "offsetY": null }, "operator": "&&", "folded": false, "offsetX": null, "offsetY": null }, "operator": "!", "folded": false, "offsetX": null, "offsetY": null }, "right": { "concept": "UnaryExpression", "argument": { "concept": "BinaryExpression", "left": { "concept": "BooleanLiteral", "value": "true", "folded": false, "offsetX": null, "offsetY": null }, "right": { "concept": "BooleanLiteral", "value": "false", "folded": false, "offsetX": null, "offsetY": null }, "operator": "||", "folded": false, "offsetX": null, "offsetY": null }, "operator": "!", "folded": false, "offsetX": null, "offsetY": null }, "operator": "||", "folded": false, "offsetX": null, "offsetY": null }, "folded": false, "offsetX": null, "offsetY": null }, { "concept": "End", "label": "结束", "folded": false, "offsetX": null, "offsetY": null } ], "playground": [] }