blob: 04899f0c5e31237f48b11afbbde9c0ba78d8871f (
plain)
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
27
28
29
30
31
32
33
|
// file : libbuild2/lexer.ixx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
namespace build2
{
inline auto lexer::
get () -> xchar
{
xchar c (base::get (ebuf_));
if (invalid (c))
fail_char (c);
return c;
}
inline void lexer::
get (const xchar& peeked)
{
base::get (peeked);
}
inline auto lexer::
peek () -> xchar
{
xchar c (base::peek (ebuf_));
if (invalid (c))
fail_char (c);
return c;
}
}
|