JetCore/__for.cpp
2024-02-16 15:44:03 -08:00

20 lines
498 B
C++

#include "__for.h"
#include "Exception.h"
#include <iostream>
namespace jet {
__for::__for(coreutils::ZString &in, coreutils::MString &out, Global &global) : Tag(in, out, global) {
if(!variableDefined(coreutils::ZString("begin")))
throw coreutils::Exception("begin keyword must be specified.");
if(!variableDefined(coreutils::ZString("end")))
throw coreutils::Exception("end keyword must be specified.");
for(;;) {
parseContainer(container);
}
}
}