src/script/parser.cpp

Mon, 26 Jan 2015 01:16:56 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 26 Jan 2015 01:16:56 +0200
branch
scripting
changeset 921
e2e9f594de66
child 922
81887a77baa0
permissions
-rw-r--r--

- commit work done on scripting

#include "parser.h"

Script::Parser::Parser(QString text) :
	m_data (text) {}

void Script::Parser::parse()
{
	m_position.reset();
}

bool Script::Parser::next(TokenType desiredType)
{
	SavedPosition oldpos = position();
}

void Script::Parser::mustGetNext(TokenType desiredType)
{

}

bool Script::Parser::peekNext(Token& tok)
{

}


const Script::SavedPosition& Script::Parser::position() const
{
	return m_position;
}

void Script::Parser::setPosition(const SavedPosition& pos)
{
	m_position = pos;
}

mercurial