equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "messagedefparser\includeprocessor.h" |
|
17 #include "messagedefparser\initialstate.h" |
|
18 #include "messagedefparser\definitiontokenizer.h" |
|
19 |
|
20 namespace Parser |
|
21 { |
|
22 |
|
23 void CIncludeProcessor::ProcessState() |
|
24 { |
|
25 if (CurrentTokenType() == Tokens::EString) |
|
26 { |
|
27 if (ParserSM().IncludeDefinitionFile(CurrentToken())) |
|
28 { |
|
29 ParserSM().SetState(new CInitialState(ParserSM())); |
|
30 } |
|
31 } |
|
32 else |
|
33 { |
|
34 ParserSM().SetError(Parser::EUnexpectedToken); |
|
35 } |
|
36 } |
|
37 |
|
38 } // namespace Parser |
|
39 |