DEV Community

Discussion on: Brace matching, it's harder than it sounds!

 
adam_cyclones profile image
Adam Crockett 🌀

To give a little context to what I am doing and all the progress so far take a look at the 1st part of the series. This is a research project for me to learn about algorithms and language design, I am learning so much. I do normally take the same stance, use existing tools don't rewrite, don't overengineer etc, but like I say it's a bit of fun.

The language is a smashing together of CSS and JS and I plan to do the actual parsing in with something like PEG's and parser combinators. Architecturally speaking I have several challenges to face so I have gone down the Wasm route.

I have seen Yacc around and Marpa and of course PEG, I choose what I felt was making the most progress in the time I have. Anyway take a read you might have some more ideas, cheers Andy.