#include <iostream>
#include <string>
#include <msp/core/getopt.h>
-#include "regex.h"
+#include <msp/strings/regex.h>
using namespace std;
using namespace Msp;
int main(int argc, char **argv)
{
- bool debug=false;
+ bool debug = false;
GetOpt getopt;
getopt.add_option('d', "debug", debug, GetOpt::NO_ARG);
getopt(argc, argv);
- const vector<string> &args=getopt.get_args();
+ const vector<string> &args = getopt.get_args();
if(args.empty())
{
string line;
while(getline(cin, line))
{
- if(RegMatch match=regex.match(line))
+ if(RegMatch match = regex.match(line))
cout<<line<<'\n';
}