Fork me on GitHub
#instaparse
<
2017-08-18
>
bbss04:08:57

I'm trying to parse Google's protobuf with Instaparse, but I can't find a recent file with it's EBNF spec.

bbss04:08:25

https://developers.google.com/protocol-buffers/docs/reference/proto3-spec I've copied all the bits from this site, but some lines are giving errors when I try to parse them.

bbss04:08:11

Is instaparse compatible with what they put in there? For example I see they use = where other files often seem to have :: ==.

bbss04:08:59

Ah, I just noticed the escape sequence part of the readme, let me look into that.

bbss06:08:22

@frank did you perhaps end up succeeding parsing that spec? Can't find any more discussion in further dates on the clojureverse..

bbss07:08:28

Okay, great I got it to work with the comments there. For any future visitors: https://gist.github.com/bbss/153e050f44db294cf7af3afc9a2f9a10

frank15:08:23

sorry just seeing this now - I had to make changes to it

frank15:08:33

one thing that might need to be done is removing comments before feeding it into the parser (or adjusting the grammar to know about them)