instaparse

2023-06-05T15:18:28.985109Z

I am trying to parse a grammar that I would think would not be too difficult for Instaparse, I have looked at the tutorials and googled but I can actually find very few examples of instaparse grammars. The format I am parsing is as follows. Does anyone have an an example of something similar that would help me get a handle on this: namespace org.acme@1.0.0 concept address { o String street } concept person { o String name o Integer age o Address address optional }

respatialized 2023-06-05T15:59:33.728099Z

In my experience the best thing to do is to try and write the grammar in EBNF by hand on paper before specifying it in code. It always forces my to clarify the structure in my mind.