SyntaxParser/include/Symbol.h

28 lines
465 B
C
Raw Permalink Normal View History

2021-04-30 12:55:56 +00:00
//
// Created by Administrator on 2021/4/30.
//
#ifndef SYNTAXPARSER_SYMBOL_H
#define SYNTAXPARSER_SYMBOL_H
#include <string>
struct Symbol {
const int index;
std::wstring name;
bool terminator;
bool start;
Symbol(int index, std::wstring name, bool terminator, bool start):
index(index),
name(std::move(name)),
terminator(terminator),
start(start)
{}
};
#endif //SYNTAXPARSER_SYMBOL_H