mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Chevrotain lib and env setup
This commit is contained in:
165
public/lib/chevrotain.min.mjs
Normal file
165
public/lib/chevrotain.min.mjs
Normal file
File diff suppressed because one or more lines are too long
2784
public/scripts/macros/chevrotain.d.ts
vendored
Normal file
2784
public/scripts/macros/chevrotain.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13
public/scripts/macros/lib.js
Normal file
13
public/scripts/macros/lib.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { CstParser } from '../../lib/chevrotain.min.mjs';
|
||||
|
||||
/** @type {any} */
|
||||
const AnyParser = CstParser;
|
||||
|
||||
/**
|
||||
* @typedef {import('./chevrotain').CstParser} CstParserType
|
||||
* @typedef {new (...args: any[]) => CstParserType} CstParserConstructor
|
||||
* @type {CstParserConstructor}
|
||||
*/
|
||||
const Parser = AnyParser;
|
||||
|
||||
export { Parser as CstParser };
|
||||
Reference in New Issue
Block a user