/*
 * contextrule.h
 *
 *  Created on: Jan 2, 2016
 *      Author: pgess
 */

#ifndef SRC_CONTEXTRULE_H_
#define SRC_CONTEXTRULE_H_

#include "ast.h"
#include <string>

namespace xreate {

typedef unsigned int ScopePacked;

class ContextRule {
	public:
		ContextRule(const Expression& rule);
		std::string compile(const ScopePacked& scopeId) const;

	private:
		Expression head;
		Expression guards;
		Expression body;
};
}

#endif /* SRC_CONTEXTRULE_H_ */
