Reader

*char-cell*

def

(Parser Form)

*comment-cell*

def

(Parser Form)

*number-cell*

def

(Parser Form)

*pattern-cell*

def

(Parser Form)

*raw-string-cell*

def

(Parser Form)

*string-cell*

def

(Parser Form)

*symbol-cell*

def

(Parser Form)

forms

defn

(Fn [(Ref ReaderDocument a)] (Result (Array (Box Located)) ParseErr))

                        (forms document)
                    

converts an already-read document to compiler forms. Missing or invalid syntax is rejected; recovery never invents compilable source.

node-category

defn

(Fn [(Ref ReaderNode a)] ReaderCategory)

                        (node-category node)
                    

returns a lexical fact for a written leaf, without choosing a color.

parse

defn

(Fn [(Ref String a)] (Result (Array (Box Located)) ParseErr))

                        (parse source)
                    

strictly reads source into located compiler forms. Shares the grammar and recovery used for lossless documents, and rejects any issue. Comments are retained.

parse-form

defn

(Fn [(Ref String a)] (Result Located ParseErr))

                        (parse-form source)
                    

strictly reads exactly one form, including surrounding whitespace.

read-syntax

defn

(Fn [(Ref String a)] ReaderDocument)

                        (read-syntax source)
                    

reads complete, incomplete, or invalid source without discarding source syntax or executing reader macros. Uses the same grammar and recovery as strict parsing, retaining every written token.