leafSmartDedent.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
leaf/common.hpp
"
5
6
namespace
by {
11
class
_nout
leafSmartDedent
{
12
BY(ME(
leafSmartDedent
))
13
14
enum
Status {
15
OFF = -1,
16
CAUGHT = 0,
17
ON = 1,
18
};
19
20
public
:
21
leafSmartDedent
();
22
23
public
:
24
me& countDown();
25
me& countUp();
26
me& useLater();
27
nint dedent();
28
void
rel();
29
nbool canDedent()
const
;
30
nbool isOn()
const
;
31
32
private
:
33
nint _cnt;
34
nbool _isEnable;
35
};
36
}
by::leafSmartDedent
Smart dedent handler for indentation-based parsing.
Definition:
leafSmartDedent.hpp:11
common.hpp