SyntaxParser/include/Production.h

23 lines
399 B
C
Raw Permalink Normal View History

2021-04-30 12:55:56 +00:00
//
// Created by Administrator on 2021/4/30.
//
#ifndef SYNTAXPARSER_PRODUCTION_H
#define SYNTAXPARSER_PRODUCTION_H
#include <vector>
// <20><><EFBFBD><EFBFBD>ʽ
struct Production {
const int index;
const int left;
const std::vector<int> right;
Production(int index, int left, std::vector<int> right): index(index), left(left), right(std::move(right)) {}
};
#endif //SYNTAXPARSER_PRODUCTION_H