로딩중...
검색중...
일치하는것 없음
smartDedent.hpp
이 파일의 문서화 페이지로 가기
1
2#pragma once
3
4#include "core/type/ntype.hpp"
5
6namespace by {
23 class _nout smartDedent: public typeProvidable, public clonable {
25
26 enum Status {
27 OFF = -1,
28 CAUGHT = 0,
29 };
30
31 public:
33
34 public:
39 me& countDown();
44 me& countUp();
49 me& useLater();
55 void rel();
56 nbool canDedent() const;
57 nbool isOn() const;
58
59 private:
60 nint _cnt;
61 nbool _isEnable;
62 };
63} // namespace by
Smart indentation management for code parsing
Definition smartDedent.hpp:23
me & countUp()
Increments the internal count, typically indicating a pending dedent.
me & countDown()
Decrements 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.
Definition tnarr.hpp:9
to Top