Lexer and Parsers?
Are the fundamental (first and second) phase of generating a compiler. When you know how to use these tools, you can create some amazing tools.
Are you Familiar with JavaScript tools shown below?
SME are you a subject matter expert on lexers and parsers?
What's the best, easiest and fastest etc.?
Github css parsers
Goolge searh for CSS parsers
Google search for lexers and parsers
Top comments (4)
I have DSLs all over my code base written in PegJS (well I checked, 4 to be exact). Super easy to use. Not as powerful as others perhaps, not sure - this is all I've ever used in JS. C++ with Lex/Yacc back in the day.
This is the CSS.pegjs grammar
pegjs.org/
Thanks for lead Mike.
I downloaded it yesterday, I think I like it but don't yet get the syntax.
Did you try the online version - really works for me. I try most things out in that and then just copy the code it builds. It is odd putting the JS in the grammar (you don't have to, but it really helps seeing what data structures you can get out).
Also, do feel free to reach out if I can help at all. Specifics etc.