tokenScanable.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "core/type/ntype.hpp"
5
6typedef union YYSTYPE YYSTYPE;
7typedef struct lloc YYLTYPE;
8typedef void* yyscan_t;
9
10namespace by {
11
12 class parser;
13
18 class _nout tokenScanable {
19 BY(ME(tokenScanable))
20
21 public:
22 nint onScan(parser& ps, YYSTYPE* val, YYLTYPE* loc, yyscan_t scanner);
23 virtual nint onScan(parser& ps, YYSTYPE* yylval, YYLTYPE* loc, yyscan_t yyscanner, nbool& isBypass) = 0;
24 };
25}
Parser for byeol language source code.
Definition: parser.hpp:43
Interface for token scanning functionality.
Definition: tokenScanable.hpp:18