mirror of
https://github.com/hi-language/transpiler.git
synced 2026-01-14 00:28:05 +00:00
Refactor: Use ES Modules in grammar definition
This commit is contained in:
@@ -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: /\/\/.*?$/,
|
||||
|
||||
Reference in New Issue
Block a user