X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FParse.hh;h=a37ed014b6f231f579e97e2e6a171c30cb25de3e;hb=9cda1b12a3e68538ea8157ca96810f0423123a70;hp=295f4a66b9e8230e2671662f7d6e8a4e7500c228;hpb=63c40810b93b4d8f3d6dad5f987adc5f2bf5b5ed;p=senf.git diff --git a/Console/Parse.hh b/Console/Parse.hh index 295f4a6..a37ed01 100644 --- a/Console/Parse.hh +++ b/Console/Parse.hh @@ -239,6 +239,14 @@ namespace console { \li the arguments. Every argument consists of a range of ArgumentToken instances. \ingroup console_parser + + \todo Completely change the 'arguments()' member implementation: let the parser just + generate a flat list of tokens and implement an 'argument iterator' with the following + features: 1. return argument ranges, automatically detecting paranthesis 2. trying to + increment the iterator beyond it's range just throws an argument syntax error. For this + to work, the parser needs to not drop the outermost '()' pair 3. detect bad paranthesis + (should not be necessary since the parser already does this). This allows to use this + same iterator to parse nested complex arguments. */ class ParseCommandInfo {