tag:blogger.com,1999:blog-3255923023602927617.post3084111871181125164..comments2021-03-14T06:42:52.766-07:00Comments on Ken Barclay: Groovy Combinator ParsingKen Barclayhttp://www.blogger.com/profile/04361889154891370742noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-3255923023602927617.post-90911272968241449172008-03-03T00:32:00.000-08:002008-03-03T00:32:00.000-08:00DierkThanks for this. I have already done some exp...Dierk<BR/><BR/>Thanks for this. I have already done some experimental work using + for sequencing, | for alternatives and * for many. Probably needs futher refinements but should be possible.<BR/><BR/>KenKen Barclayhttps://www.blogger.com/profile/04361889154891370742noreply@blogger.comtag:blogger.com,1999:blog-3255923023602927617.post-82244273684180865042008-03-02T15:35:00.000-08:002008-03-02T15:35:00.000-08:00cool.I guess it would be possible to come up with ...cool.<BR/>I guess it would be possible to come up with a nice DSL that allows to come even closer to a declarative description without sacrificing the power of the concept. How about the + operator for seqC or || for alternatives? Optionals could be written as<BR/>(0..1) * token (Range times).<BR/><BR/>a = a + (0..1) * b<BR/>c = a ¦¦ (1..many) * b<BR/><BR/>regards<BR/>DierkDierkhttps://www.blogger.com/profile/12156853217677811317noreply@blogger.com