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
+23
View File
@@ -0,0 +1,23 @@
import { Hash } from '../../tokenizer/index.js';
// '#' ident
export const xxx = 'XXX';
export const name = 'Hash';
export const structure = {
value: String
};
export function parse() {
const start = this.tokenStart;
this.eat(Hash);
return {
type: 'Hash',
loc: this.getLocation(start, this.tokenStart),
value: this.substrToCursor(start + 1)
};
}
export function generate(node) {
this.token(Hash, '#' + node.value);
}