How would I declare a grammar rule for a number of tags in any order?
问题 I am trying to write a compiler for a formating language.This language has a start and an end property and a set of document and text properties. The first is just info for the document itself where as the second is the actual document (titles, paragraphs, lists... the usual). The first set must always follow the start property and must contain all properties BUT in any order the user might like. Assuming that my tokens for the properites are PROP1, PROP2, PROP3 and PROP4 I can use recursion