meld-spec
Version:
Specification for the Meld scripting language
18 lines (17 loc) • 516 B
TypeScript
import { MeldNode } from './types/nodes';
import { Parser } from './types/parser';
/**
* Result of validating a Meld document
*/
export interface ValidationResult {
valid: boolean;
errors: string[];
ast?: MeldNode[];
}
/**
* Validate the syntax of a Meld document string
* @param parser The parser implementation to use
* @param input The Meld document string to validate
* @returns The validation result
*/
export declare function validateSyntax(parser: Parser, input: string): ValidationResult;