There's yet another, possibly never-to-be-completed Go front end, modernc.org/gc/v3. This time I'm trying something new with respect to the Go parser. It takes three main steps, initially.1. Extract the EBNF specification from the language specs.The unmodified EBNF grammar is not a well-formed PEG...
Every now and then there is a need to pass arguments to the command-line application. While there are a lot of libraries/frameworks to do that in Java, I still had this feeling “why such an easy thing must be so cumbersome and require so much boilerplate?”. TL/DR: code. So I decided: the world...
Why don’t I implement a nice monadic parser combinator library in Rust? That’s what my thought was when after implementing low-level mock-HTTP server in MIO and actually needed to parse the bytes received by server. What I wanted is a declative way to define sequence of strings to be matched...
The ruby parser gem is an implementation of a Ruby parser in Ruby itself, which allows for Ruby code to parse and introspect Ruby code. It’s used in a number of places, but perhaps most prominently by rubocop, a Ruby linter and style checker. In parser versions <= 2.3.0.4, the parser is...