UNPKG

llparse

Version:

Compile incremental parsers to C code

16 lines (11 loc) 322 B
import * as frontend from 'llparse-frontend'; import { Node } from './base'; export class Empty extends Node<frontend.node.Empty> { public doBuild(out: string[]): void { const otherwise = this.ref.otherwise!; if (!otherwise.noAdvance) { this.prologue(out); } this.tailTo(out, otherwise); } }