mirror of
https://codeberg.org/Kankys/NewLukasBlog.git
synced 2026-11-11 14:14:36 +01:00
OpravyPoAI
This commit is contained in:
1 parent
99aa797101
commit
24fd53c94c
4746 files changed
+700320
-12
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
import { Number as NumberToken } from '../../tokenizer/index.js';
|
||||
|
||||
export const name = 'Number';
|
||||
export const structure = {
|
||||
value: String
|
||||
};
|
||||
|
||||
export function parse() {
|
||||
return {
|
||||
type: 'Number',
|
||||
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
||||
value: this.consume(NumberToken)
|
||||
};
|
||||
}
|
||||
|
||||
export function generate(node) {
|
||||
this.token(NumberToken, node.value);
|
||||
}
|
||||
Reference in new issue
Block a user