no-context / moo

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

Advice on Moo / Nearley usage #134

Closed GreenImp closed 4 years ago

GreenImp commented 4 years ago

Hi,

I'm trying to get to grips with using Nearley.js and Moo together, and I'm finding it a bit difficult to figure out how to build a tokenizer to do what I want.

The code examples I'm working on are a bit large, and the explanation is a bit long. Is there any chance that I could have a chat over email to try and help? I did email @tjvr but not sure if he's seen it. If he's too busy, @nathan would you mind having a chat?

mspoulsen commented 4 years ago

I also wish there we a guide of some sort. Really difficult to get started or even understanding why I would need Moo to begin with? I have heard that ambiguities are better handled with a lexer so I am curious about Moo.

A few easy to understand examples would be nice :slightly_smiling_face:

mspoulsen commented 4 years ago

I found this video which was really helpful: https://www.youtube.com/watch?v=GP91_duEmk8

tjvr commented 4 years ago

I think this question would probably be better on the Nearley repository :-)