leafTokenScanable.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "leaf/common.hpp"
5
6typedef union ZZSTYPE ZZSTYPE;
7typedef struct lloc ZZLTYPE;
8typedef void* zzscan_t;
9
10namespace by {
11
12 class leafParser;
13
18 class _nout leafTokenScanable {
19 BY(ME(leafTokenScanable))
20
21 public:
22 nint onScan(leafParser& ps, ZZSTYPE* val, ZZLTYPE* loc, zzscan_t scanner);
23 virtual nint onScan(leafParser& ps, ZZSTYPE* yylval, ZZLTYPE* loc, zzscan_t yyscanner, nbool& isBypass) = 0;
24 };
25}
Parser for leaf configuration language.
Definition: leafParser.hpp:17
Interface for token scanning during leaf parsing.
Definition: leafTokenScanable.hpp:18