31 lines
1.3 KiB
JavaScript
31 lines
1.3 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 564923
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
e.languages.apl = {
|
|
comment: /(?:⍝|#[! ]).*$/m,
|
|
string: { pattern: /'(?:[^'\r\n]|'')*'/, greedy: !0 },
|
|
number:
|
|
/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
|
|
statement: /:[A-Z][a-z][A-Za-z]*\b/,
|
|
"system-function": { pattern: /⎕[A-Z]+/i, alias: "function" },
|
|
constant: /[⍬⌾#⎕⍞]/,
|
|
function:
|
|
/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
|
|
"monadic-operator": { pattern: /[\\\/⌿⍀¨⍨⌶&∥]/, alias: "operator" },
|
|
"dyadic-operator": { pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/, alias: "operator" },
|
|
assignment: { pattern: /←/, alias: "keyword" },
|
|
punctuation: /[\[;\]()◇⋄]/,
|
|
dfn: { pattern: /[{}⍺⍵⍶⍹∇⍫:]/, alias: "builtin" },
|
|
};
|
|
}
|
|
(t.exports = r), (r.displayName = "apl"), (r.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|