Loading...
Searching...
No Matches
stelaSmartDedent.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "stela/common.hpp"
5
6namespace by {
25 class _nout stelaSmartDedent {
26 BY(ME(stelaSmartDedent))
27
28 enum Status {
29 OFF = -1,
30 CAUGHT = 0,
31 };
32
33 public:
35
36 public:
57 void rel();
58 nbool canDedent() const;
59 nbool isOn() const;
60
61 private:
62 nint _cnt;
63 nbool _isEnable;
64 };
65} // namespace by
Smart dedent handler for indentation-based parsing.
Definition stelaSmartDedent.hpp:25
me & countUp()
Increments the internal count, typically indicating a pending dedent.
me & useLater()
Enables dedent tracking for future parsing, deferring any pending dedents.
nint dedent()
Generates and returns a dedent token based on the internal count.
me & countDown()
Decrements the internal count, typically indicating a pending dedent.
Rich logging support with polymorphic type conversion.
Definition richLog.hpp:34