Commit fde8ca4a authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Added Document::ParseDeclarator.

parent 2a82d927
......@@ -288,6 +288,10 @@ bool Document::parse(ParseMode mode)
m = TranslationUnit::ParseExpression;
break;
case ParseDeclarator:
m = TranslationUnit::ParseDeclarator;
break;
case ParseStatement:
m = TranslationUnit::ParseStatement;
break;
......
......@@ -92,6 +92,7 @@ public:
ParseTranlationUnit,
ParseDeclaration,
ParseExpression,
ParseDeclarator,
ParseStatement
};
......
......@@ -278,6 +278,12 @@ bool TranslationUnit::parse(ParseMode mode)
_ast = node;
} break;
case ParseDeclarator: {
DeclaratorAST *node = 0;
parsed = parser.parseDeclarator(node);
_ast = node;
} break;
case ParseStatement: {
StatementAST *node = 0;
parsed = parser.parseStatement(node);
......
......@@ -118,6 +118,7 @@ public:
ParseTranlationUnit,
ParseDeclaration,
ParseExpression,
ParseDeclarator,
ParseStatement
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment