Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Node {
- private:
- int priority;
- public:
- Node(int priority) :
- priority(priority) {
- }
- bool get_priority() {
- return priority;
- }
- };
- class Edge {
- private:
- Node node;
- char value;
- public:
- Edge(int node, int value) :
- node(node), value(value) {
- }
- int getNode() {
- return node;
- }
- int getValue() {
- return value;
- }
- };
- class NFA {
- private:
- vector<vector<Edge> > graph;
- int size;
- public:
- NFA () : size(0) {
- }
- void addKeyword(string word) {
- }
- void addPunct(char punt) {
- }
- void addDefinition(string def) {
- }
- void addExpression(string exp) {
- }
- vector<vector<Edge> > generateGraph() {
- vector<vector<Edge> > final_graph;
- return final_graph;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement