UNPKG

@lcap/nasl-parser

Version:

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

92 lines (91 loc) 2.45 kB
{ "concept": "Logic", "name": "testType", "params": [], "returns": [], "variables": [ { "concept": "Variable", "name": "v1", "typeAnnotation": { "concept": "TypeAnnotation", "typeKind": "primitive", "typeNamespace": "nasl.core", "typeName": "Boolean" } }, { "concept": "Variable", "name": "v2", "typeAnnotation": { "concept": "TypeAnnotation", "typeKind": "primitive", "typeNamespace": "nasl.core", "typeName": "Long" } }, { "concept": "Variable", "name": "v3", "typeAnnotation": { "concept": "TypeAnnotation", "typeKind": "primitive", "typeNamespace": "nasl.core", "typeName": "Decimal" } }, { "concept": "Variable", "name": "v4", "typeAnnotation": { "concept": "TypeAnnotation", "typeKind": "primitive", "typeNamespace": "nasl.core", "typeName": "String" } }, { "concept": "Variable", "name": "v5", "typeAnnotation": { "concept": "TypeAnnotation", "typeKind": "primitive", "typeNamespace": "nasl.core", "typeName": "Date" } }, { "concept": "Variable", "name": "v6", "typeAnnotation": { "concept": "TypeAnnotation", "typeKind": "primitive", "typeNamespace": "nasl.core", "typeName": "Time" } }, { "concept": "Variable", "name": "v7", "typeAnnotation": { "concept": "TypeAnnotation", "typeKind": "primitive", "typeNamespace": "nasl.core", "typeName": "DateTime" } } ], "body": [ { "concept": "Start", "label": "开始", "folded": false }, { "concept": "End", "label": "结束", "folded": false } ], "playground": [] }