로딩중...
검색중...
일치하는것 없음
by::smartDedent 클래스 참조

Smart indentation management for code parsing 더 자세히 ...

#include <smartDedent.hpp>

by::smartDedent에 대한 상속 다이어그램 :

Public 멤버 함수

me & countDown ()
 Decrements the internal count, typically indicating a pending dedent.
 
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.
 
void rel ()
 
nbool canDedent () const
 
nbool isOn () const
 

상세한 설명

Smart indentation management for code parsing

A class that parser uses to count and manage in an array how many leading spaces there are each time it creates a scope with indentation. For example, when parsing the following byeol code:

name := "my device"
# 1)
Definition tnarr.hpp:9

If the parser is parsing at position 1, smartDedent's internal array value is [0, 4, 6]. That is, the number of spaces for the outermost scope is smartDedent[0] = 0, and the number of spaces proving it's the scope of the innermost device scope is smartDedent[smartDedent.len() - 1] = 6, meaning there should be 6 leading spaces.

멤버 함수 문서화

◆ countDown()

me & by::smartDedent::countDown ( )

Decrements the internal count, typically indicating a pending dedent.

반환값
A reference to this smartDedent instance.

◆ countUp()

me & by::smartDedent::countUp ( )

Increments the internal count, typically indicating a pending dedent.

반환값
A reference to this smartDedent instance.

◆ dedent()

nint by::smartDedent::dedent ( )

Generates and returns a dedent token based on the internal count.

반환값
The token ID for DEDENT, or 0 if no dedent is pending.

◆ useLater()

me & by::smartDedent::useLater ( )

Enables dedent tracking for future parsing, deferring any pending dedents.

반환값
A reference to this smartDedent instance.

이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.:
to Top