28 lines
465 B
C++
28 lines
465 B
C++
//
|
|
// 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
|