Skip to main content
Module

x/apex_core/mod.ts>parseValue

JavaScript / Node.js support for the Apex language
Go to Latest
function parseValue
import { parseValue } from "https://deno.land/x/apex_core@v0.1.4/mod.ts";

Given a string containing a Apex value (ex. [42]), parse the AST for that value. Throws ApexError if a syntax error is encountered.

This is useful within tools that operate upon Apex Values directly and in isolation of complete Apex documents.

Consider providing the results to the utility function: valueFromAST().

Parameters

source: string
optional
options: ParseOptions