jmespath-community / jmespath.spec

JMESPath Specification
6 stars 3 forks source link

Create GRAMMAR #35

Closed innovate-invent closed 2 years ago

innovate-invent commented 2 years ago

Took some time to copy out everything from https://jmespath.org/specification.html into a document that can act as a source of truth as well as a source of generated documentation.

This document can be parsed with ^(.*)(?=;;)(?:;; ?(.*?)(\\?) *)$|^(.*(?!;;))$. Group 1 or 4 are the rules with comments, Group 2 is the markdown, and group 3 is the presence of the trailing \ character when used inline.

springcomp commented 2 years ago

You should have asked me 😶. I added support to produce Markdown output to the JMESPath site generation. That’s how I converted the proposals to Markdown. It gets you most of the way.

Sorry for not making that clear before.

innovate-invent commented 2 years ago

No worries, this gave me a chance to review and edit the document anyway. The markdown was pretty minimal.