kyrie
    Preparing search index...

    Function parse_value

    • Parses a JavaScript or JSON value into an Abstract Syntax Tree

      Parameters

      • input: unknown

        The value to parse

      Returns ASTNode

      The AST representation of the parsed value

      const obj = {name: "John", age: 30};
      const ast = parse_value(obj);
      console.log(ast.basic_type); // "object"
      console.log(ast.properties.name.value); // "John"