instaparse

If you're not trampolining your parser, why bother getting up in the morning?
2017-08-18T04:47:57.000131Z

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

2017-08-18T04:48:25.000052Z

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.

2017-08-18T04:49:11.000152Z

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

2017-08-18T04:51:59.000047Z

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

2017-08-18T06:36:04.000183Z

ah I notice it's been discussed here before: https://clojurians-log.clojureverse.org/instaparse/2017-02-17.html

2017-08-18T06:39:22.000030Z

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

2017-08-18T07:21:28.000188Z

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

frank 2017-08-18T15:45:23.000279Z

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

frank 2017-08-18T15:46:33.000121Z

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)