#include "Compile.h"
// Function used to parse data
bool Compile::ParseFile(string p_sFileData)
{
bool result = true;
string sReadString = "";
DeclaredStates::State CurrentState;
for (size_t i = 0; i < p_sFileData.length(); i++)
{
// Check for a string
if (isalnum(p_sFileData[i]))
{
sReadString += p_sFileData[i];
}
// If it is not an alphanumeric character
else
{
// We have a "function" definition
if (sReadString.compare("function") == 0)
{
CurrentState = DeclaredFunctionsStates::DF_function;
// PROCESS "function" - Declare a function
while (true)
{
// Parse states transforms
for (size_t s = 0; s < CurrentState.Transforms.size(); s++)
{
if (CurrentState.Transforms[s].Character == p_sFileData[i])
{
//cout