Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I found it very useful for writing a lexer and parser for a search DSL and React component recently:

https://github.com/williamcotton/search-input-query



Interesting. I implemented something very similar (if not identical) a couple years ago (at work so not open source). I used a simple grammar and standard parser generator. It’s been nice to have the grammar as we’ve made tweaks over the years to change various behaviours and add features.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: