UNPKG

astn

Version:

The TypeScript library for parsing and formatting ASTN (Abstract Syntax Tree Notation) - a human-editable data format for structured content

8 lines (7 loc) 265 B
import * as _et from 'exupery-core-types'; export type Iterator<Element, State> = { 'get current': () => _et.Optional_Value<Element>; 'look ahead': (offset: number) => _et.Optional_Value<Element>; 'consume': () => void; 'get state': () => State; };