UNPKG

attrpath

Version:
58 lines (57 loc) 1.09 kB
/** * Copyright © 2020 2021 2022 7thCode.(http://seventh-code.com/) * This software is released under the MIT License. * opensource.org/licenses/mit-license.php */ /** * ParserStream */ export declare class ParserStream { private start; private end; private value; /** * char * * @remarks current position char */ get char(): string; /** * charCode * * @remarks current position charCode */ get charCode(): number; /** * current * * @remarks * String between restore point and current position. */ get current(): string; /** * is_terminal * * @remarks end? */ get is_terminal(): boolean; constructor(value: string); /** * restore_point * * @remarks save point. */ restore_point(): void; /** * restore * * @remarks current position restore to restore_point. */ restore(): void; /** * next * * @remarks Advance the parsed end by one character */ next(): void; }