mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Parser
- Added the beginnings of the lex-only arg classification.
This commit is contained in:
parent
090c80cb90
commit
ac73a47f9b
1 changed files with 6 additions and 4 deletions
|
@ -144,10 +144,12 @@ void Parser::initialize (int argc, const char** argv)
|
||||||
Tree* sub = branch->addBranch (new Tree ("argSub"));
|
Tree* sub = branch->addBranch (new Tree ("argSub"));
|
||||||
sub->attribute ("raw", l->first);
|
sub->attribute ("raw", l->first);
|
||||||
|
|
||||||
if (l->second == Lexer::typeOperator)
|
switch (l->second)
|
||||||
sub->tag ("OP");
|
{
|
||||||
else
|
case Lexer::typeOperator: sub->tag ("OP"); break;
|
||||||
sub->tag ("?");
|
case Lexer::typeTag: sub->tag ("TAG"); break;
|
||||||
|
default: sub->tag ("?"); break;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO More types needed. Perhaps.
|
// TODO More types needed. Perhaps.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue