UNPKG

llparse

Version:

Compile incremental parsers to C code

13 lines (8 loc) 309 B
import * as frontend from 'llparse-frontend'; import { Compilation } from '../compilation'; export abstract class Code<T extends frontend.code.Code> { protected cachedDecl: string | undefined; constructor(public readonly ref: T) { } public abstract build(ctx: Compilation, out: string[]): void; }