One solution would be to just accept any parameters in any order and then check for duplicates in a second step. If you want to include the position of duplicate arguments in the error

message, you could parse the argument together with its position (`tuple2 getPosition arg`)

An alternative would be to use the parser state to keep a record of the parsed arguments and then produce an error as soon as you get a duplicate, but that would be slightly more complicated.

By on 6/28/2010 2:47 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper