Documentation
¶
Overview ¶
Package classifier implements line classification for CalcMark
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentifierResolver ¶
IdentifierResolver checks whether a variable name is defined in the current evaluation context. This interface decouples the spec/classifier package from impl/interpreter, preserving the spec → impl dependency direction. impl/interpreter.Environment satisfies this interface.
type LineType ¶
type LineType int
LineType represents the type of a line in a CalcMark document
func ClassifyLine ¶
func ClassifyLine(line string, env IdentifierResolver) (LineType, error)
ClassifyLine classifies a line as CALCULATION, MARKDOWN, or BLANK. Returns an error for critical syntax errors (like inline octothorpe).
Click to show internal directories.
Click to hide internal directories.