UNPKG

@igorivaniuk/tlb-parser

Version:

Parse TLB syntax into TypeScript objects

5 lines (4 loc) 239 B
import type { Grammar, MatchResult } from 'ohm-js'; import type { Program } from './ast/nodes'; export declare function parse(input: string, grammar?: Grammar | undefined): MatchResult; export declare function ast(input: string): Program;