namespace GL {
namespace SL {
+struct Location
+{
+ std::string name;
+ unsigned line;
+};
+
class Parser
{
private:
};
std::string source;
- std::string source_name;
unsigned source_index;
- unsigned current_line;
+ Location location;
std::string::const_iterator iter;
std::string::const_iterator source_end;
bool allow_preprocess;
private:
void parse_source();
- std::string format_error(const std::string &);
- std::string format_syntax_error(const std::string &);
-
const std::string &peek_token(unsigned = 0);
const std::string &parse_token();
std::string parse_token_();