1 /** Aesalon, a tool to visualize program behaviour in real time.
2 Copyright (C) 2009-2011, Aesalon development team.
4 Aesalon is distributed under the terms of the GNU GPLv3. See
5 the included file LICENSE for more information.
7 @file include/config/Parser.h
10 #ifndef AesalonConfig_Parser_H
11 #define AesalonConfig_Parser_H
21 std::ifstream
*m_stream
;
30 void parse(Vault
*vault
, const std::string
&configFile
);
31 void parseDirectory(Vault
*vault
, const std::string
&directory
);
33 void openFile(const std::string
&configFile
);
34 std::string
nextToken(TokenType
&type
);
35 std::string
expectNextToken(TokenType expected
);
36 void expectNextSymbol(const std::string
&symbol
);
37 void skipWhitespace();
40 const char *nameOf(TokenType type
) const;