- Added the beginnings of the lex-only arg classification.
This commit is contained in:
Paul Beckingham 2014-09-07 13:40:29 -04:00
parent 090c80cb90
commit ac73a47f9b

View file

@ -144,10 +144,12 @@ void Parser::initialize (int argc, const char** argv)
Tree* sub = branch->addBranch (new Tree ("argSub"));
sub->attribute ("raw", l->first);
if (l->second == Lexer::typeOperator)
sub->tag ("OP");
else
sub->tag ("?");
switch (l->second)
{
case Lexer::typeOperator: sub->tag ("OP"); break;
case Lexer::typeTag: sub->tag ("TAG"); break;
default: sub->tag ("?"); break;
}
// TODO More types needed. Perhaps.
}