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