ajout du site

This commit is contained in:
Camilla Schoeser
2026-05-29 21:38:59 +02:00
parent 4a07130d44
commit 6a71f91e2f
12475 changed files with 3055567 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { String as StringToken } from '../../tokenizer/index.js';
import { decode, encode } from '../../utils/string.js';
export const name = 'String';
export const structure = {
value: String
};
export function parse() {
return {
type: 'String',
loc: this.getLocation(this.tokenStart, this.tokenEnd),
value: decode(this.consume(StringToken))
};
}
export function generate(node) {
this.token(StringToken, encode(node.value));
}