@frontiers-labs/argon 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +36 -0
- package/dist/annotations.d.ts +4 -0
- package/dist/annotations.d.ts.map +1 -0
- package/dist/annotations.js +10 -0
- package/dist/annotations.js.map +1 -0
- package/dist/codegen/js.d.ts +3 -0
- package/dist/codegen/js.d.ts.map +1 -0
- package/dist/codegen/js.js +159 -0
- package/dist/codegen/js.js.map +1 -0
- package/dist/codegen/rust.d.ts +4 -0
- package/dist/codegen/rust.d.ts.map +1 -0
- package/dist/codegen/rust.js +578 -0
- package/dist/codegen/rust.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/ir.d.ts +194 -0
- package/dist/ir.d.ts.map +1 -0
- package/dist/ir.js +3 -0
- package/dist/ir.js.map +1 -0
- package/dist/parser.d.ts +3 -0
- package/dist/parser.d.ts.map +1 -0
- package/dist/parser.js +524 -0
- package/dist/parser.js.map +1 -0
- package/dist/runtime.d.ts +13 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +49 -0
- package/dist/runtime.js.map +1 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Argon Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @argon/compiler
|
|
2
|
+
|
|
3
|
+
The Argon TypeScript-to-Web Components compiler.
|
|
4
|
+
|
|
5
|
+
See the [main README](../README.md) for full documentation.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -D @argon/compiler
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## CLI
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx argon compile <input.ts> [options]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## API
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { component, html, css } from '@argon/compiler';
|
|
23
|
+
|
|
24
|
+
@component('my-element')
|
|
25
|
+
export class MyElement {
|
|
26
|
+
static readonly styles: string = css`...`;
|
|
27
|
+
|
|
28
|
+
render(): string {
|
|
29
|
+
return html`...`;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
hydrate(root: ShadowRoot): void {
|
|
33
|
+
// Add interactivity
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../src/annotations.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAE1D;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAEhF;AAED,eAAO,MAAM,GAAG,aAAO,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Argon compiler annotations — pure type stubs for IDE support.
|
|
2
|
+
// The compiler reads these syntactically; they carry no runtime behavior.
|
|
3
|
+
export function component(_tagName) {
|
|
4
|
+
return () => { };
|
|
5
|
+
}
|
|
6
|
+
export function html(strings, ...values) {
|
|
7
|
+
return String.raw({ raw: strings }, ...values);
|
|
8
|
+
}
|
|
9
|
+
export const css = html;
|
|
10
|
+
//# sourceMappingURL=annotations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../src/annotations.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,0EAA0E;AAE1E,MAAM,UAAU,SAAS,CAAC,QAAgB;IACxC,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,OAA6B,EAAE,GAAG,MAAiB;IACtE,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/codegen/js.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACT,MAAM,UAAU,CAAC;AAIlB,wBAAgB,UAAU,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,CAyBnD"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
// ── Public API ─────────────────────────────────────────────────────────────────
|
|
3
|
+
export function generateJS(module) {
|
|
4
|
+
const hasCsr = !!module.component.renderBodySource;
|
|
5
|
+
const parts = [
|
|
6
|
+
'// Generated by Argon compiler — do not edit by hand.\n',
|
|
7
|
+
...(hasCsr ? ['const html = (s, ...v) => String.raw({ raw: s }, ...v);\n'] : []),
|
|
8
|
+
];
|
|
9
|
+
// Data constants
|
|
10
|
+
for (const dc of module.dataConsts) {
|
|
11
|
+
parts.push(`const ${dc.name} = ${literalToJS(dc.value)};\n`);
|
|
12
|
+
}
|
|
13
|
+
// Helper functions (type-stripped from bodySource)
|
|
14
|
+
for (const fn of module.functions) {
|
|
15
|
+
const paramsJS = fn.params.map(p => p.name).join(', ');
|
|
16
|
+
const bodyJS = stripTypeAnnotations(`function __wrapper__(${fn.params.map(p => `${p.name}: any`).join(', ')}) {\n${fn.bodySource}\n}`);
|
|
17
|
+
// Extract just the body from the transpiled wrapper
|
|
18
|
+
const body = extractFunctionBody(bodyJS);
|
|
19
|
+
parts.push(`function ${fn.name}(${paramsJS}) {\n${body}\n}\n`);
|
|
20
|
+
}
|
|
21
|
+
// Custom element class
|
|
22
|
+
parts.push(componentToJS(module.component));
|
|
23
|
+
return parts.join('\n');
|
|
24
|
+
}
|
|
25
|
+
// ── Literal → JS ───────────────────────────────────────────────────────────────
|
|
26
|
+
function literalToJS(lit) {
|
|
27
|
+
switch (lit.kind) {
|
|
28
|
+
case 'string': return JSON.stringify(lit.value);
|
|
29
|
+
case 'number': return String(lit.value);
|
|
30
|
+
case 'boolean': return String(lit.value);
|
|
31
|
+
case 'array': return `[${lit.elements.map(literalToJS).join(', ')}]`;
|
|
32
|
+
case 'object': {
|
|
33
|
+
const entries = lit.properties.map(p => ` ${JSON.stringify(p.key)}: ${literalToJS(p.value)}`);
|
|
34
|
+
return `{\n${entries.join(',\n')}\n}`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
// ── Type stripping ─────────────────────────────────────────────────────────────
|
|
39
|
+
function stripTypeAnnotations(source) {
|
|
40
|
+
const result = ts.transpileModule(source, {
|
|
41
|
+
compilerOptions: {
|
|
42
|
+
target: ts.ScriptTarget.ESNext,
|
|
43
|
+
module: ts.ModuleKind.ESNext,
|
|
44
|
+
useDefineForClassFields: false,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
return result.outputText;
|
|
48
|
+
}
|
|
49
|
+
function extractFunctionBody(transpiled) {
|
|
50
|
+
const open = transpiled.indexOf('{');
|
|
51
|
+
const close = transpiled.lastIndexOf('}');
|
|
52
|
+
if (open === -1 || close === -1)
|
|
53
|
+
return transpiled;
|
|
54
|
+
return transpiled.slice(open + 1, close).trim();
|
|
55
|
+
}
|
|
56
|
+
function stripMethodTypes(methodSrc) {
|
|
57
|
+
const classWrapped = `class __X__ extends HTMLElement {\n${methodSrc}\n}`;
|
|
58
|
+
const out = stripTypeAnnotations(classWrapped);
|
|
59
|
+
// Remove the class wrapper lines
|
|
60
|
+
const lines = out.split('\n');
|
|
61
|
+
// Drop first line (class __X__...) and last line (closing })
|
|
62
|
+
const inner = lines.slice(1, lines.length - 2);
|
|
63
|
+
return inner.join('\n').trim();
|
|
64
|
+
}
|
|
65
|
+
function stripBodyTypes(body, paramsSrc) {
|
|
66
|
+
const src = `class __X__ extends HTMLElement {\n __m__(${paramsSrc}) {\n${body}\n }\n}`;
|
|
67
|
+
const out = stripTypeAnnotations(src);
|
|
68
|
+
const methodMatch = out.match(/__m__\([^)]*\)\s*\{([\s\S]*)\s*\}\s*\}\s*$/);
|
|
69
|
+
if (methodMatch)
|
|
70
|
+
return methodMatch[1].trim();
|
|
71
|
+
// Fallback: crude regex strip
|
|
72
|
+
return body
|
|
73
|
+
.replace(/<[A-Z][A-Za-z<>, [\]|&]*>/g, '') // remove generic params
|
|
74
|
+
.replace(/\s*:\s*[A-Z][A-Za-z<>, [\]|&]+/g, '') // remove type annotations
|
|
75
|
+
.replace(/([^!])!/g, '$1'); // remove non-null assertions
|
|
76
|
+
}
|
|
77
|
+
// ── Component → JS class ───────────────────────────────────────────────────────
|
|
78
|
+
function rewritePropsInRenderBody(js, className, props) {
|
|
79
|
+
let out = js;
|
|
80
|
+
for (const prop of props) {
|
|
81
|
+
out = out.replace(new RegExp(`\\bthis\\.${prop.name}\\b`, 'g'), `this.#${prop.name}`);
|
|
82
|
+
}
|
|
83
|
+
// Static styles field accessed as ClassName.styles → ClassName.#styles
|
|
84
|
+
out = out.replace(new RegExp(`\\b${className}\\.styles\\b`, 'g'), `${className}.#styles`);
|
|
85
|
+
return out;
|
|
86
|
+
}
|
|
87
|
+
function componentToJS(comp) {
|
|
88
|
+
const { tagName, className, props, styles, renderBodySource, hydrateBodySource, privateMethods } = comp;
|
|
89
|
+
const hasCsr = !!renderBodySource;
|
|
90
|
+
// Static styles — needed so #renderHTML() can embed them
|
|
91
|
+
const stylesField = styles && hasCsr
|
|
92
|
+
? ` static #styles = ${JSON.stringify(styles)};\n`
|
|
93
|
+
: '';
|
|
94
|
+
// Private field declarations
|
|
95
|
+
const propFields = props.map(p => ` #${p.name} = ${literalToJS(p.defaultValue)};`).join('\n');
|
|
96
|
+
const isCSRField = hasCsr ? ` #isCSR = false;` : '';
|
|
97
|
+
const fields = [propFields, isCSRField].filter(Boolean).join('\n');
|
|
98
|
+
// Constructor (CSR path)
|
|
99
|
+
let constructorBlock = '';
|
|
100
|
+
if (hasCsr) {
|
|
101
|
+
const propInits = props.map(p => ` this.#${p.name} = props.${p.name} ?? ${literalToJS(p.defaultValue)};`).join('\n');
|
|
102
|
+
constructorBlock = `
|
|
103
|
+
constructor(props) {
|
|
104
|
+
super();
|
|
105
|
+
if (props !== undefined) {
|
|
106
|
+
this.#isCSR = true;
|
|
107
|
+
${propInits}
|
|
108
|
+
const shadow = this.attachShadow({ mode: 'open' });
|
|
109
|
+
shadow.innerHTML = this.#renderHTML();
|
|
110
|
+
this.#hydrate(shadow);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
}
|
|
115
|
+
// connectedCallback: SSR hydration path
|
|
116
|
+
const attrInits = props.map(p => {
|
|
117
|
+
const def = literalToJS(p.defaultValue);
|
|
118
|
+
return ` this.#${p.name} = this.dataset['${p.name}'] || ${def};`;
|
|
119
|
+
}).join('\n');
|
|
120
|
+
const csrGuard = hasCsr ? ` if (this.#isCSR) return;\n` : '';
|
|
121
|
+
// Hydrate body — strip types
|
|
122
|
+
const hydrateJS = stripBodyTypes(hydrateBodySource, 'root');
|
|
123
|
+
// #renderHTML() for CSR
|
|
124
|
+
let renderMethod = '';
|
|
125
|
+
if (hasCsr) {
|
|
126
|
+
const rawRenderJS = stripBodyTypes(renderBodySource, '');
|
|
127
|
+
const renderJS = rewritePropsInRenderBody(rawRenderJS, className, props);
|
|
128
|
+
renderMethod = `
|
|
129
|
+
#renderHTML() {
|
|
130
|
+
${renderJS}
|
|
131
|
+
}
|
|
132
|
+
`;
|
|
133
|
+
}
|
|
134
|
+
// Private methods — strip types from each
|
|
135
|
+
const privateMethodsJS = privateMethods.map(m => {
|
|
136
|
+
const stripped = stripMethodTypes(m.source);
|
|
137
|
+
return `\n${stripped}`;
|
|
138
|
+
}).join('\n');
|
|
139
|
+
return `
|
|
140
|
+
class ${className} extends HTMLElement {
|
|
141
|
+
${stylesField}${fields}
|
|
142
|
+
${constructorBlock}
|
|
143
|
+
connectedCallback() {
|
|
144
|
+
${csrGuard}${attrInits}
|
|
145
|
+
if (this.shadowRoot) {
|
|
146
|
+
this.#hydrate(this.shadowRoot);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
#hydrate(root) {
|
|
151
|
+
${hydrateJS}
|
|
152
|
+
}
|
|
153
|
+
${renderMethod}${privateMethodsJS}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
customElements.define('${tagName}', ${className});
|
|
157
|
+
`;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