fixed eof
This commit is contained in:
parent
82170f06ae
commit
5505945f8e
3 changed files with 13 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,3 +4,11 @@ dsahd {
|
|||
asdasdfdoy893eryh
|
||||
:awesome:
|
||||
}
|
||||
|
||||
twrgfgdfg {
|
||||
fsgsfg
|
||||
}
|
||||
|
||||
tsr4t4t {
|
||||
dasjkhdakjs
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue