aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/lexer.h
blob: 17cb87ec6dd83787d6de528e96b13bdc177f2529 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once 
 
#include "public.h" 
#include "token.h" 
 
#include <util/generic/ptr.h> 
 
namespace NYson {
    ////////////////////////////////////////////////////////////////////////////////
 
    class TStatelessLexer {
    public:
        TStatelessLexer();
 
        ~TStatelessLexer();
 
        size_t GetToken(const TStringBuf& data, TToken* token);
 
    private:
        class TImpl;
        THolder<TImpl> Impl;
    };
 
    ////////////////////////////////////////////////////////////////////////////////
 
} // namespace NYson