aboutsummaryrefslogblamecommitdiffstats
path: root/library/cpp/yson/lexer.h
blob: d9d701874d41252517ba585873b27b923ebd97e7 (plain) (tree)
1
2
3
4
5
6
7
8
9





                             
                 
                                                                                    
 

                           
 
                           
 
                                                               
 


                            
 
                                                                                    
 
                    
#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