Expand description
AST (Abstract Syntax Tree) definitions for SevenMark
This module contains all AST element definitions organized into submodules:
span: Span and Parameter typesexpression: Expression AST for conditionalselements: Individual element structstable: Table-related structureslist: List-related structurestraversable: Traversable trait and implementation
Structs§
- AgeElement
- 나이 계산 [age(…)]
- Block
Quote Element - 인용 블록 {{{#blockquote …}}}
- Category
Element - 카테고리 {{{#category …}}}
- Code
Element - 코드 블록 {{{#code …}}}
- Comment
Element - 주석 요소
- Comparison
Operator - 비교 연산자 (위치 정보 포함)
- Conditional
List Items - 조건부 리스트 아이템 ({{{#if condition :: [[item]]…}}})
- Conditional
Table Cells - 조건부 테이블 셀 ({{{#if condition :: [[cell]]…}}})
- Conditional
Table Rows - 조건부 테이블 행 ({{{#if condition :: [[row]]…}}})
- Define
Element - 변수 정의 {{{#define #varname=“value” …}}}
- Error
Element - 에러 요소 (파싱 실패한 내용)
- Escape
Element - 이스케이프 요소
- External
Media Element - 외부 미디어 [[#youtube …]], [[#vimeo …]], [[#nicovideo …]], [[#spotify …]]
- Fold
Element - 폴드/접기 {{{#fold …}}}
- Fold
Inner Element - 폴드 내부 요소
- Footnote
Element - 각주 {{{#footnote …}}}
- Footnote
RefElement - 각주 위치 fn
- HLine
Element - 수평선 ––
- Hard
Break Element - 하드 브레이크 [br]
- Header
Element - 헤더 = Title =
- IfElement
- If 조건문 {{{#if condition :: content}}}
- Include
Element - 포함 {{{#include …}}}
- List
Element - 리스트 요소 {{{#list …}}}
- List
Item Element - 리스트 아이템
- Literal
Element - 리터럴 {{{ content }}}
- Logical
Operator - 논리 연산자 (위치 정보 포함)
- Media
Element - 미디어 [[…]]
- Mention
Element - 멘션 <@uuid> 또는 <#uuid>
- Null
Element - Null 매크로 [null]
- Parameter
- Individual parameter with span tracking
- Redirect
Element - 리다이렉트 {{{#redirect …}}}
- Resolved
Doc - 문서/카테고리 resolve 결과 (title만 저장, URL은 렌더러에서 조립)
- Resolved
File - 파일 resolve 결과 (DB에서 실제 URL을 가져옴)
- Resolved
Media Info - MediaElement resolve 결과 file, document, category, url 각각 독립적으로 처리 href 우선순위: url > document > category > user
- Ruby
Element - 루비 텍스트 {{{#ruby …}}}
- Soft
Break Element - 소프트 브레이크 (줄바꿈)
- Span
- 소스 코드 위치 정보 (바이트 오프셋)
- Styled
Element - 스타일 적용 {{{#style=“…” content}}}
- Table
Cell Element - 테이블 셀
- Table
Element - 테이블 요소 {{{#table …}}}
- Table
RowElement - 테이블 행
- TeXElement
- TeX 수식 $ … $ 또는 $$ … $$
- Text
Element - 텍스트 요소
- Text
Style Element - 텍스트 스타일 (Bold, Italic, Strikethrough, Underline, Superscript, Subscript 공유)
- Time
NowElement - 현재 시간 [now]
- Variable
Element - 변수 참조 [var(…)]
Enums§
- Comparison
Operator Kind - 비교 연산자 종류
- Element
- 메인 SevenMark AST Element enum
- Expression
- 조건식 Expression AST
- List
Content Item - 리스트 콘텐츠 아이템 (아이템 또는 조건부)
- Logical
Operator Kind - 논리 연산자 종류
- Mention
Type - 멘션 타입
- Table
Cell Item - 테이블 셀 콘텐츠 아이템 (셀 또는 조건부)
- Table
RowItem - 테이블 행 콘텐츠 아이템 (행 또는 조건부)
Traits§
- Traversable
- Trait for traversing AST elements
Type Aliases§
- Parameters
- 파라미터 맵: key-value 쌍으로 각 value는 Parameter 구조체 (span 포함) BTreeMap을 사용하여 키 순서를 일관되게 유지