yini-parser
Version:
Readable configuration without YAML foot-guns or JSON noise. The official Node.js parser for YINI config format — An INI-inspired configuration format with clear nesting, explicit types, and predictable parsing.
75 lines (74 loc) • 2.68 kB
TypeScript
import { ATN, CharStream, DFA, Lexer, RuleContext } from "antlr4";
export default class YiniLexer extends Lexer {
static readonly YINI_TOKEN = 1;
static readonly INCLUDE_TOKEN = 2;
static readonly DEPRECATED_TOKEN = 3;
static readonly SECTION_HEAD = 4;
static readonly TERMINAL_TOKEN = 5;
static readonly SS = 6;
static readonly EUR = 7;
static readonly CARET = 8;
static readonly GT = 9;
static readonly LT = 10;
static readonly EQ = 11;
static readonly HASH = 12;
static readonly COMMA = 13;
static readonly COLON = 14;
static readonly OB = 15;
static readonly CB = 16;
static readonly OC = 17;
static readonly CC = 18;
static readonly PLUS = 19;
static readonly DOLLAR = 20;
static readonly PC = 21;
static readonly AT = 22;
static readonly SEMICOLON = 23;
static readonly BOOLEAN_FALSE = 24;
static readonly BOOLEAN_TRUE = 25;
static readonly NULL = 26;
static readonly EMPTY_OBJECT = 27;
static readonly EMPTY_LIST = 28;
static readonly SHEBANG = 29;
static readonly NUMBER = 30;
static readonly KEY = 31;
static readonly IDENT = 32;
static readonly IDENT_BACKTICKED = 33;
static readonly STRING = 34;
static readonly TRIPLE_QUOTED_STRING = 35;
static readonly SINGLE_OR_DOUBLE = 36;
static readonly R_AND_C_STRING = 37;
static readonly HYPER_STRING = 38;
static readonly ESC_SEQ = 39;
static readonly ESC_SEQ_BASE = 40;
static readonly NL = 41;
static readonly SINGLE_NL = 42;
static readonly WS = 43;
static readonly BLOCK_COMMENT = 44;
static readonly COMMENT = 45;
static readonly LINE_COMMENT = 46;
static readonly INLINE_COMMENT = 47;
static readonly IDENT_INVALID = 48;
static readonly REST = 49;
static readonly META_INVALID = 50;
static readonly EOF: number;
static readonly channelNames: string[];
static readonly literalNames: (string | null)[];
static readonly symbolicNames: (string | null)[];
static readonly modeNames: string[];
static readonly ruleNames: string[];
atLineStart(): boolean;
constructor(input: CharStream);
get grammarFileName(): string;
get literalNames(): (string | null)[];
get symbolicNames(): (string | null)[];
get ruleNames(): string[];
get serializedATN(): number[];
get channelNames(): string[];
get modeNames(): string[];
sempred(localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
private LINE_COMMENT_sempred;
static readonly _serializedATN: number[];
private static __ATN;
static get _ATN(): ATN;
static DecisionsToDFA: DFA[];
}