Aktueller Stand

This commit is contained in:
2026-01-23 01:33:35 +01:00
parent 082dc5e110
commit 2766dd12c5
10109 changed files with 1578841 additions and 77685 deletions

View File

@@ -0,0 +1,2 @@
declare const Grammar: import("grammex").ExplicitRule<string>;
export default Grammar;

View File

@@ -0,0 +1,12 @@
/* IMPORT */
import { match, or, star } from 'grammex';
import { identity } from '../utils.js';
/* MAIN */
const Escaped = match(/\\./, identity);
const Passthrough = match(/./, identity);
const StarStarStar = match(/\*\*\*+/, '*');
const StarStarNoLeft = match(/([^/{[(!])\*\*/, (_, $1) => `${$1}*`);
const StarStarNoRight = match(/(^|.)\*\*(?=[^*/)\]}])/, (_, $1) => `${$1}*`);
const Grammar = star(or([Escaped, StarStarStar, StarStarNoLeft, StarStarNoRight, Passthrough]));
/* EXPORT */
export default Grammar;

View File

@@ -0,0 +1,2 @@
declare const normalize: (glob: string) => string;
export default normalize;

View File

@@ -0,0 +1,9 @@
/* IMPORT */
import { parse } from 'grammex';
import Grammar from './grammar.js';
/* MAIN */
const normalize = (glob) => {
return parse(glob, Grammar, { memoization: false }).join('');
};
/* EXPORT */
export default normalize;