Documentation ¶
Index ¶
- type Assignment
- type BinaryExpression
- type Block
- type CodeBlock
- type Conditional
- type ConditionalWithElse
- type Expression
- type FrontMatter
- type FuncDecl
- type FunctionCall
- type Goto
- type Header
- type Inline
- type InlineCode
- type Line
- type Link
- type LinkBlock
- type List
- type ListItem
- type Literal
- type Loop
- type NestedExpression
- type Node
- type Paragraph
- type Script
- type Statement
- type StatementBlock
- type Text
- type UnaryExpression
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct { Symbol lexeme.Item EqualSign lexeme.Item Value Expression Semicolon lexeme.Item }
func (Assignment) CompareStatement ¶
func (n Assignment) CompareStatement(n2 Statement) bool
type BinaryExpression ¶
type BinaryExpression struct { LeftOperand Expression Operator lexeme.Item RightOperand Expression }
func (BinaryExpression) CompareExpression ¶
func (n BinaryExpression) CompareExpression(n2 Expression) bool
type CodeBlock ¶
type CodeBlock struct { StartFence lexeme.Item StartEndline lexeme.Item Code []Statement EndFence lexeme.Item CloseEndline lexeme.Item EndLine lexeme.Item }
func (CodeBlock) CompareBlock ¶
type Conditional ¶
type Conditional struct { IfLiteral lexeme.Item Cond Expression Consequent StatementBlock }
func (Conditional) CompareStatement ¶
func (n Conditional) CompareStatement(n2 Statement) bool
type ConditionalWithElse ¶
type ConditionalWithElse struct { IfLiteral lexeme.Item Cond Expression Consequent StatementBlock ElseLiteral lexeme.Item Alternate StatementBlock }
func (ConditionalWithElse) CompareStatement ¶
func (n ConditionalWithElse) CompareStatement(n2 Statement) bool
type Expression ¶
type Expression interface {
CompareExpression(n2 Expression) bool
}
type FrontMatter ¶
func (FrontMatter) CompareFrontMatter ¶
func (n FrontMatter) CompareFrontMatter(n2 FrontMatter) bool
type FuncDecl ¶
type FuncDecl struct { ExternKeyword lexeme.Item Symbol lexeme.Item OpenParen lexeme.Item Params []lexeme.Item CloseParen lexeme.Item Semicolon lexeme.Item EndLine lexeme.Item }
func (FuncDecl) CompareFuncDecl ¶
type FunctionCall ¶
type FunctionCall struct { Symbol lexeme.Item OpenParen lexeme.Item Args []Expression CloseParen lexeme.Item Semicolon lexeme.Item }
func (FunctionCall) CompareStatement ¶
func (n FunctionCall) CompareStatement(n2 Statement) bool
type Goto ¶
func (Goto) CompareStatement ¶
type Header ¶
func (Header) CompareHeader ¶
type InlineCode ¶
type InlineCode struct { CodeStart lexeme.Item Code Expression CodeEnd lexeme.Item }
func (InlineCode) CompareInline ¶
func (n InlineCode) CompareInline(n2 Inline) bool
type Line ¶
func (Line) CompareLine ¶
type Link ¶
type Link struct { OpenBrace lexeme.Item Symbol lexeme.Item CloseBrace lexeme.Item OpenParen lexeme.Item Text Inline CloseParen lexeme.Item EndLine lexeme.Item }
func (Link) CompareLink ¶
type LinkBlock ¶
func (LinkBlock) CompareBlock ¶
type List ¶
func (List) CompareBlock ¶
type ListItem ¶
func (ListItem) CompareListItem ¶
type Literal ¶
func (Literal) CompareExpression ¶
func (n Literal) CompareExpression(n2 Expression) bool
type Loop ¶
type Loop struct { WhileLiteral lexeme.Item Cond Expression Body Statement }
func (Loop) CompareStatement ¶
type NestedExpression ¶
type NestedExpression struct { OpenParen lexeme.Item Expr Expression CloseParen lexeme.Item }
func (NestedExpression) CompareExpression ¶
func (n NestedExpression) CompareExpression(n2 Expression) bool
type Node ¶
func (Node) CompareNode ¶
type Paragraph ¶
func (Paragraph) CompareBlock ¶
type Script ¶
type Script struct { FrontMatter FrontMatter Nodes []Node Eof lexeme.Item }
func (Script) CompareScript ¶
type StatementBlock ¶
func (StatementBlock) CompareStatement ¶
func (n StatementBlock) CompareStatement(n2 Statement) bool
type Text ¶
func (Text) CompareInline ¶
type UnaryExpression ¶
type UnaryExpression struct { Operator lexeme.Item Operand Expression }
func (UnaryExpression) CompareExpression ¶
func (n UnaryExpression) CompareExpression(n2 Expression) bool
Click to show internal directories.
Click to hide internal directories.