diff --git a/NouVeL/NVL.cpp b/NouVeL/NVL.cpp index e7525bb..196e0e8 100644 --- a/NouVeL/NVL.cpp +++ b/NouVeL/NVL.cpp @@ -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(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); } } -} \ No newline at end of file +} diff --git a/NouVeL/NVL.h b/NouVeL/NVL.h index ff3afb7..fa54341 100644 --- a/NouVeL/NVL.h +++ b/NouVeL/NVL.h @@ -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); -} \ No newline at end of file +} diff --git a/myfile.txt b/myfile.txt index 0ca1e33..569a7c0 100644 --- a/myfile.txt +++ b/myfile.txt @@ -4,3 +4,11 @@ dsahd { asdasdfdoy893eryh :awesome: } + +twrgfgdfg { + fsgsfg +} + +tsr4t4t { + dasjkhdakjs +}