aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/select/scanner.h
blob: 188815afcebe1e8a3ae79e93c26d5b4172ff6cf0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#if !defined(yyFlexLexerOnce)
#  include <FlexLexer.h>
#endif

#include "parser.hxx"
#include "location.hh"
#include <iosfwd>

namespace document::select {

class DocSelScanner final : yyFlexLexer {
public:
    explicit DocSelScanner(std::istream* in) : yyFlexLexer(in) {}
    ~DocSelScanner() override = default;
    int yylex(DocSelParser::semantic_type* yylval, DocSelParser::location_type* yyloc);
};

}