Whitespace changes.
This commit is contained in:
parent
fac5a95a48
commit
ba18354947
1 changed files with 3 additions and 7 deletions
10
src/parser.h
10
src/parser.h
|
|
@ -54,8 +54,7 @@ private:
|
||||||
mutable token_t lookahead;
|
mutable token_t lookahead;
|
||||||
mutable bool use_lookahead;
|
mutable bool use_lookahead;
|
||||||
|
|
||||||
token_t& next_token(std::istream& in, flags_t tflags) const
|
token_t& next_token(std::istream& in, flags_t tflags) const {
|
||||||
{
|
|
||||||
if (use_lookahead)
|
if (use_lookahead)
|
||||||
use_lookahead = false;
|
use_lookahead = false;
|
||||||
else
|
else
|
||||||
|
|
@ -63,14 +62,11 @@ private:
|
||||||
return lookahead;
|
return lookahead;
|
||||||
}
|
}
|
||||||
|
|
||||||
void push_token(const token_t& tok) const
|
void push_token(const token_t& tok) const {
|
||||||
{
|
|
||||||
assert(&tok == &lookahead);
|
assert(&tok == &lookahead);
|
||||||
use_lookahead = true;
|
use_lookahead = true;
|
||||||
}
|
}
|
||||||
|
void push_token() const {
|
||||||
void push_token() const
|
|
||||||
{
|
|
||||||
use_lookahead = true;
|
use_lookahead = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue