aboutsummaryrefslogtreecommitdiff
path: root/src/FbMenuParser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbMenuParser.cc')
-rw-r--r--src/FbMenuParser.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/FbMenuParser.cc b/src/FbMenuParser.cc
index fbb96b1..0f0b301 100644
--- a/src/FbMenuParser.cc
+++ b/src/FbMenuParser.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: FbMenuParser.cc,v 1.1 2004/05/02 21:02:26 fluxgen Exp $ 23// $Id: FbMenuParser.cc,v 1.2 2004/06/10 11:42:35 fluxgen Exp $
24 24
25#include "FbMenuParser.hh" 25#include "FbMenuParser.hh"
26 26
@@ -59,6 +59,10 @@ Parser &FbMenuParser::operator >> (Parser::Item &out) {
59 first = '{'; 59 first = '{';
60 second = '}'; 60 second = '}';
61 break; 61 break;
62 case ICON:
63 first = '<';
64 second = '>';
65 break;
62 case DONE: // get new line and call this again 66 case DONE: // get new line and call this again
63 if (!nextLine()) { 67 if (!nextLine()) {
64 out = Parser::s_empty_item; 68 out = Parser::s_empty_item;
@@ -78,6 +82,8 @@ Parser &FbMenuParser::operator >> (Parser::Item &out) {
78 else if (m_curr_token == NAME) 82 else if (m_curr_token == NAME)
79 m_curr_token = ARGUMENT; 83 m_curr_token = ARGUMENT;
80 else if (m_curr_token == ARGUMENT) 84 else if (m_curr_token == ARGUMENT)
85 m_curr_token = ICON;
86 else if (m_curr_token == ICON)
81 m_curr_token = DONE; 87 m_curr_token = DONE;
82 88
83 out = Parser::s_empty_item; 89 out = Parser::s_empty_item;
@@ -101,6 +107,10 @@ Parser &FbMenuParser::operator >> (Parser::Item &out) {
101 break; 107 break;
102 case ARGUMENT: 108 case ARGUMENT:
103 out.first = "ARGUMENT"; 109 out.first = "ARGUMENT";
110 m_curr_token = ICON;
111 break;
112 case ICON:
113 out.first = "ICON";
104 m_curr_token = DONE; 114 m_curr_token = DONE;
105 break; 115 break;
106 case DONE: 116 case DONE: