2023-05-06 10:00:41 -07:00
|
|
|
// dwm
|
2023-04-28 20:01:48 -07:00
|
|
|
export {
|
2023-05-06 10:54:27 -07:00
|
|
|
createWindow,
|
|
|
|
getProcAddress,
|
|
|
|
mainloop,
|
2023-04-28 20:01:48 -07:00
|
|
|
} from "https://deno.land/x/dwm@0.3.3/mod.ts";
|
2023-05-06 10:00:41 -07:00
|
|
|
export * as gl from "https://deno.land/x/gluten@0.1.6/api/gles23.2.ts";
|
|
|
|
|
|
|
|
// jsTokens
|
2023-05-06 17:18:49 -07:00
|
|
|
import jsTokens from "https://esm.sh/js-tokens@8.0.1";
|
2023-05-06 10:00:41 -07:00
|
|
|
export function tokenize(input: string): Iterable<Token> {
|
2023-05-06 10:54:27 -07:00
|
|
|
// deno-lint-ignore no-explicit-any
|
|
|
|
return (jsTokens as any)(input);
|
|
|
|
}
|
2023-05-06 10:00:41 -07:00
|
|
|
type Token =
|
|
|
|
| { type: "StringLiteral"; value: string; closed: boolean }
|
|
|
|
| { type: "NoSubstitutionTemplate"; value: string; closed: boolean }
|
|
|
|
| { type: "TemplateHead"; value: string }
|
|
|
|
| { type: "TemplateMiddle"; value: string }
|
|
|
|
| { type: "TemplateTail"; value: string; closed: boolean }
|
|
|
|
| { type: "RegularExpressionLiteral"; value: string; closed: boolean }
|
|
|
|
| { type: "MultiLineComment"; value: string; closed: boolean }
|
|
|
|
| { type: "SingleLineComment"; value: string }
|
|
|
|
| { type: "IdentifierName"; value: string }
|
|
|
|
| { type: "PrivateIdentifier"; value: string }
|
|
|
|
| { type: "NumericLiteral"; value: string }
|
|
|
|
| { type: "Punctuator"; value: string }
|
|
|
|
| { type: "WhiteSpace"; value: string }
|
|
|
|
| { type: "LineTerminatorSequence"; value: string }
|
2023-05-06 10:54:27 -07:00
|
|
|
| { type: "Invalid"; value: string };
|
|
|
|
|
|
|
|
// clipboard
|
2023-05-06 17:18:49 -07:00
|
|
|
import { clipboard } from "https://raw.githubusercontent.com/Nisgrak/deno-clipboard/fix-deno-1.0.0/mod.ts";
|
2023-05-06 10:54:27 -07:00
|
|
|
export { clipboard } from "https://raw.githubusercontent.com/Nisgrak/deno-clipboard/fix-deno-1.0.0/mod.ts";
|
|
|
|
try {
|
|
|
|
await clipboard.readText();
|
|
|
|
} catch (err) {
|
|
|
|
console.log("If you are running this on linux, please make sure you have 'xsel' installed.");
|
|
|
|
throw err;
|
2023-05-07 13:00:04 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// path
|
|
|
|
export * as path from "https://deno.land/std@0.186.0/path/mod.ts";
|