- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
Latest commit
22 lines (22 loc) · 368 Bytes
/
Copy pathmain.cpp
File metadata and controls
22 lines (22 loc) · 368 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<iostream>
#include"Xyz_Database.h"
#include"BST_of_Words.h"
#include"S_Expression_Tree.h"
voidconsoleInterface(Xyz_Database& m)
{
string command;
string result;
while(command!="QUIT")
{
cout<<">";
getline(cin,command);
result=m.transducer(command);
cout<<result;
}
}
intmain()
{
Xyz_Database database;
consoleInterface(database);
return0;
}