@jmespath-community/jmespath
Version:
Typescript implementation of the JMESPath Community specification
20 lines (19 loc) • 663 B
TypeScript
import { LexerOptions, LexerToken, Token } from './Lexer.type';
export declare const basicTokens: Record<string, Token>;
declare class StreamLexer {
private _current;
private _enable_legacy_literals;
tokenize(stream: string, options?: LexerOptions): LexerToken[];
private consumeUnquotedIdentifier;
private consumeQuotedIdentifier;
private consumeRawStringLiteral;
private consumeNumber;
private consumeLBracket;
private consumeOrElse;
private consumeOperator;
private consumeLiteral;
private looksLikeJSON;
private parseJSON;
}
export declare const Lexer: StreamLexer;
export default Lexer;