fixed eof

This commit is contained in:
lachrymaL 2021-05-14 17:21:10 -04:00
parent 82170f06ae
commit 5505945f8e
No known key found for this signature in database
GPG key ID: F3640ACFA174B1C1
3 changed files with 13 additions and 5 deletions

View file

@ -61,8 +61,6 @@ namespace {
}
}
stream.putback(c);
final = stream.tellg();
stream.seekg(initial);
@ -150,8 +148,10 @@ namespace NVL
current_context.Scope_Hierarchy.push_back(std::make_shared<Tree>(root));
//while (!nvl.eof())
while (!nvl.eof()) {
parse_Sequence(current_context, nvl);
nvl >> std::ws;
}
nvl.close();
} else {
@ -227,4 +227,4 @@ namespace NVL
x.Print(indent + 1);
}
}
}
}

View file

@ -68,4 +68,4 @@ namespace NVL
void parse_Sequence(Context context, std::ifstream& nvl);
void parse_Call(Context context, std::ifstream& nvl, std::streampos end_pos);
}
}

View file

@ -4,3 +4,11 @@ dsahd {
asdasdfdoy893eryh
:awesome:
}
twrgfgdfg {
fsgsfg
}
tsr4t4t {
dasjkhdakjs
}