aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/lexer.h
blob: 3855192ba705fcbc83484ee7e185e2a15c2116a7 (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