yini-parser
Version:
Node.js parser for YINI — a clean, structured INI alternative with types, simple section nesting, comments, and strict mode.
69 lines (68 loc) • 2.4 kB
TypeScript
import { ATN, CharStream, DFA, Lexer } from "antlr4";
export default class YiniLexer extends Lexer {
static readonly YINI_MARKER = 1;
static readonly SECTION_HEAD = 2;
static readonly TERMINAL_TOKEN = 3;
static readonly SS = 4;
static readonly EUR = 5;
static readonly CARET = 6;
static readonly GT = 7;
static readonly LT = 8;
static readonly EQ = 9;
static readonly HASH = 10;
static readonly COMMA = 11;
static readonly COLON = 12;
static readonly OB = 13;
static readonly CB = 14;
static readonly OC = 15;
static readonly CC = 16;
static readonly PLUS = 17;
static readonly DOLLAR = 18;
static readonly PC = 19;
static readonly AT = 20;
static readonly SEMICOLON = 21;
static readonly BOOLEAN_FALSE = 22;
static readonly BOOLEAN_TRUE = 23;
static readonly NULL = 24;
static readonly EMPTY_OBJECT = 25;
static readonly EMPTY_LIST = 26;
static readonly SHEBANG = 27;
static readonly NUMBER = 28;
static readonly KEY = 29;
static readonly IDENT = 30;
static readonly IDENT_BACKTICKED = 31;
static readonly STRING = 32;
static readonly TRIPLE_QUOTED_STRING = 33;
static readonly SINGLE_OR_DOUBLE = 34;
static readonly R_AND_C_STRING = 35;
static readonly HYPER_STRING = 36;
static readonly ESC_SEQ = 37;
static readonly ESC_SEQ_BASE = 38;
static readonly NL = 39;
static readonly SINGLE_NL = 40;
static readonly WS = 41;
static readonly BLOCK_COMMENT = 42;
static readonly COMMENT = 43;
static readonly LINE_COMMENT = 44;
static readonly INLINE_COMMENT = 45;
static readonly IDENT_INVALID = 46;
static readonly REST = 47;
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[];
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[];
static readonly _serializedATN: number[];
private static __ATN;
static get _ATN(): ATN;
static DecisionsToDFA: DFA[];
}