graphql
Version:
A Query Language and Runtime which can target any service.
36 lines (35 loc) • 945 B
TypeScript
/** @category Lexing */
/**
* An exported enum describing the different kinds of tokens that the
* lexer emits.
*/
export declare const TokenKind: {
readonly SOF: "<SOF>";
readonly EOF: "<EOF>";
readonly BANG: "!";
readonly DOLLAR: "$";
readonly AMP: "&";
readonly PAREN_L: "(";
readonly PAREN_R: ")";
readonly DOT: ".";
readonly SPREAD: "...";
readonly COLON: ":";
readonly EQUALS: "=";
readonly AT: "@";
readonly BRACKET_L: "[";
readonly BRACKET_R: "]";
readonly BRACE_L: "{";
readonly PIPE: "|";
readonly BRACE_R: "}";
readonly NAME: "Name";
readonly INT: "Int";
readonly FLOAT: "Float";
readonly STRING: "String";
readonly BLOCK_STRING: "BlockString";
readonly COMMENT: "Comment";
};
/**
* An exported enum describing the different kinds of tokens that the
* lexer emits.
*/
export type TokenKind = (typeof TokenKind)[keyof typeof TokenKind];