mediawiki-extensions-AbuseF.../parser_native/eval.cpp
River Tarnell ff2465007f - remove unused isInVector
- move AFP stuff into its own namespace
- move utf8 and equivset into seperate modules
- parser should understand /* */ comments
2008-08-08 03:23:34 +00:00

25 lines
449 B
C++

#include <cstdlib>
#include <iostream>
#include <string>
#include "filter_evaluator.h"
#include "request.h"
int main(int argc, char** argv)
{
afp::request r;
std::string result;
try {
if (!r.load(std::cin))
return 1;
result = r.evaluate();
} catch (afp::exception &excep) {
std::cout << "EXCEPTION: " << excep.what() << std::endl;
std::cerr << "EXCEPTION: " << excep.what() << std::endl;
}
std::cout << result << "\0";
}