I have two quick spirit queries:
Firstly, I've defined all my rules for a specific grammar I have. I've now found out that certain things may/may not appear in the grammar. FYI the grammar is parsing a list of available functions for a product I'm integrating with.
How do I handle the fact that some items may appear and could appear at any point in the grammar. Essentially I know what the first rule will be, but from there on, any could occur some more than once. Given that these are all strings, will the clean * do the trick for optional values?
Finally I have two main rules that govern the two different styles of input that could occur in the file ,what I want to say with the start rule is that either of these rules could appear in the input any number of times.
Any help appreciated.