Skip to content

Feature: VCL

Аниса edited this page Sep 12, 2022 · 17 revisions

━ What's the Objective?

Vital's kit's custom lightweight confign language focussing to enhance productivity and ease of maintenance. VCL is more straightforward and feature complete unlike JSON; Supports comments, nested objects (numeric & non-numeric indexes, integrated w/ vKit.Object) out of the box.

━ Format

# TODO:
test:
  test2:
  -: 1

━ APIs

━ vKit.vcl.encode() (Shared)

@Objective: Encodes provided object.
const string: result = vKit.vcl.encode(
  object: buffer
)

━ vKit.vcl.decode() (Shared)

@Objective: Decodes provided VCL.
const array: result = vKit.vcl.decode(
  string: buffer
)

// Result:
result: [
  ~: value, // Parsed value
  int: ref, // Reference index
  bool: isErrored // Boolean indicating whether vcl was successfully decoded
]
Clone this wiki locally