FreeTensor
Loading...
Searching...
No Matches
ast_parser_base.h
Go to the documentation of this file.
1#ifndef FREE_TENSOR_AST_PARSER_BASE_H
2#define FREE_TENSOR_AST_PARSER_BASE_H
3
4#include <string>
5#include <unordered_map>
6
7#include <antlr4-runtime.h>
8
9#include <type/data_type.h>
10
11namespace freetensor {
12
13class ASTParserBase : public antlr4::Parser {
14 protected:
15 std::unordered_map<std::string, DataType> name2dtype_;
16
17 ASTParserBase(antlr4::TokenStream *input) : antlr4::Parser(input) {}
18};
19
20} // namespace freetensor
21
22#endif // FREE_TENSOR_AST_PARSER_BASE_H
Definition: ast_parser_base.h:13
std::unordered_map< std::string, DataType > name2dtype_
Definition: ast_parser_base.h:15
ASTParserBase(antlr4::TokenStream *input)
Definition: ast_parser_base.h:17
Definition: allocator.h:9