no-context / moo

Optimised tokenizer/lexer generator! 🐄 Uses /y for performance. Moo.
BSD 3-Clause "New" or "Revised" License
833 stars 66 forks source link

FYI: I published a Deno version #148

Open oguimbal opened 4 years ago

oguimbal commented 4 years ago

Hi,

FYI, I published a Deno version of moo

Let me know if you have any problem with that, or comment.

(and thanks for this awesome lib !)

rethab commented 2 years ago

Hey @oguimbal, did you publish it from a fork? I couldn't find that repository under your handle..

Anyways, I had some issues using the deno version. I have tried this:

import * as moo from "https://deno.land/x/moo@0.5.1-deno.2/mod.ts";

moo.states({})

but I get:

error: Uncaught TypeError: moo.states is not a function
moo.states({})

Someone at the deno discord pointed out that the .js and .d.ts were out of sync. How are you using this module?

Using compileStates seems to work with deno 1.25.0, but the intellij plugin complains about it.