From d0bc0194004c519f9ad00607ed55f911ca48bc48 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 26 Sep 2025 07:20:54 -0700 Subject: [PATCH] Refactor: Use ES Modules in grammar definition --- grammar.ne | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar.ne b/grammar.ne index 12e2906..40cbbc3 100644 --- a/grammar.ne +++ b/grammar.ne @@ -1,7 +1,7 @@ @{% -const moo = require('moo'); +import moo from 'moo'; -const lexer = moo.compile({ +export const lexer = moo.compile({ ws: /[ \t]+/, nl: { match: /\n/, lineBreaks: true }, comment: /\/\/.*?$/,