Common Lisp Package: COM.GIGAMONKEYS.MARKUP

README:

FUNCTION

Public

Undocumented

PARSE-FILE (FILE &KEY (PARSE-LINKS-P *DEFAULT-PARSE-LINKS*) (SUBDOCUMENT-TAGS *DEFAULT-SUBDOCUMENT-TAGS*) (STRUCTURED-DATA-TAGS *DEFAULT-STRUCTURED-DATA-TAGS*))

PARSE-TEXT (TEXT &KEY (PARSE-LINKS-P *DEFAULT-PARSE-LINKS*) (SUBDOCUMENT-TAGS *DEFAULT-SUBDOCUMENT-TAGS*) (STRUCTURED-DATA-TAGS *DEFAULT-STRUCTURED-DATA-TAGS*))

Private

FIND-BINDING (TOKEN BINDINGS)

Find the first binding that could handle the given token. A default binding can be established with the key t

MAKE-BLANK-TRANSLATOR (NEXT)

Translate more than one consecutive newlines into a blank-line token

MAKE-EOL-TRANSLATOR (NEXT)

Translate CRLF and CR to LF

MAKE-INDENTATION-TRANSLATOR (NEXT)

Translate leading spaces into INDENTATION tokens.

MAKE-TAB-TRANSLATOR (NEXT)

Translate Tab characters to *spaces-per-tab* Space characters.

OPEN-STRUCTURED-DATA (PARSER TAG)

Parse a tag which is intended to hold structured data rather than text. Blanks, newlines, and indentation are ignored.

TAG-NAME-CHAR-P (TOKEN)

Characters that can appear in tag names (i.e. between a '' and a '{').

TEXT-CHAR-P (TOKEN)

Characters that can appear unescaped in non-verbatim sections.

Undocumented

%INDENTATION-COMPARE (TOKEN SPACES CMP)

%PARSE (GET-CHAR PARSE-LINKS-P SUBDOCUMENT-TAGS STRUCTURED-DATA-TAGS)

ADD-TEXT (PARSER TEXT)

APPEND-CHILD (ELEMENT CHILD)

APPEND-TEXT (STRING TEXT)

BLANK-P (TOKEN)

CLOSE-ELEMENT (PARSER ELEMENT)

CLOSE-FRAME (PARSER FRAME-MARKER)

CURRENT-CHILD (ELEMENT)

GET-EXPECTED (FILE)

ILLEGAL-TOKEN (TOKEN &OPTIONAL EXTRA)

INDENTATION-P (TOKEN)

INDENTATION< (TOKEN SPACES)

INDENTATION= (TOKEN SPACES)

INDENTATION>= (TOKEN SPACES)

KEY-MATCH (TOKEN KEY)

MAKE-BASIC-TRANSLATOR-CHAIN (END)

MAKE-TEXT-BUFFER (&OPTIONAL TEXT)

MAKE-TOKENIZER (NEXT)

MAKE-TRAILING-SPACE-TRANSLATOR (NEXT)

NEWTEST (N &REST PARSER-ARGS)

OK (N)

OK-FILE (TXT)

OPEN-BLOCK (PARSER TAG)

OPEN-BLOCKQUOTE-OR-LIST (PARSER INDENTATION)

OPEN-DEFINITION-LIST (PARSER LIST-MARKER INDENTATION)

OPEN-DEFINITION-LIST-DEFINITION (PARSER INDENTATION)

OPEN-DEFINITION-LIST-TERM (PARSER INDENTATION)

OPEN-DOCUMENT (PARSER)

OPEN-ELEMENT (PARSER TAG)

OPEN-FRAME (PARSER)

OPEN-HEADER-HANDLER (PARSER)

OPEN-LIST (PARSER LIST-MARKER INDENTATION)

OPEN-LIST-ITEM (PARSER LIST-MARKER INDENTATION)

OPEN-MULTILINE-BLOCK (PARSER TAG)

OPEN-MULTILINE-TAG-NAME-HANDLER (PARSER)

OPEN-PARAGRAPH (PARSER TAG)

OPEN-POSSIBLE-MODELINE-HANDLER (PARSER)

OPEN-POSSIBLE-MULTILINE-BLOCK-HANDLER (PARSER)

OPEN-SLASH-HANDLER (PARSER)

OPEN-SUBDOCUMENT (PARSER TAG)

OPEN-TAG-NAME-HANDLER (PARSER TOKEN)

OPEN-URL (PARSER)

OPEN-VERBATIM (PARSER EXTRA-INDENTATION)

PARAGRAPH-BINDINGS (PARSER PARAGRAPH)

PROCESS-TOKEN (PARSER TOKEN)

PUSH-BINDING (PARSER KEY FN)

RENUMBER (&OPTIONAL (SPACING 1))

SHOW-FILE (FILE)

SHOW-STRING (STRING)

TEST (N &REST PARSER-ARGS)

TEST-FILE (TXT &REST PARSER-ARGS)

TEST-FILES (DIR)

TEST-NUMBER (TXT)

TESTS (&OPTIONAL (DIR tests/))

TOKEN (CONTENT OFFSET)

TOKEN-IS (TOKEN WHAT)

TXT-P (P)

URL-CHAR-P (TOKEN)

MACRO

Private

Undocumented

WITH-BINDINGS ((PARSER TOKEN) &BODY BINDINGS)

GENERIC-FUNCTION

Private

Undocumented

TO-SEXP (THING)

SLOT-ACCESSOR

Private

Undocumented

BINDINGS (OBJECT)

SETFBINDINGS (NEW-VALUE OBJECT)

CHILDREN (OBJECT)

SETFCHILDREN (NEW-VALUE OBJECT)

CONTENT (OBJECT)

SETFCONTENT (NEW-VALUE OBJECT)

CURRENT-CHILD-CONS (OBJECT)

SETFCURRENT-CHILD-CONS (NEW-VALUE OBJECT)

CURRENT-INDENTATION (OBJECT)

SETFCURRENT-INDENTATION (NEW-VALUE OBJECT)

ELEMENTS (OBJECT)

SETFELEMENTS (NEW-VALUE OBJECT)

LINES (OBJECT)

SETFLINES (NEW-VALUE OBJECT)

OFFSET (OBJECT)

SETFOFFSET (NEW-VALUE OBJECT)

SPACES (OBJECT)

SETFSPACES (NEW-VALUE OBJECT)

STRUCTURED-DATA-TAGS (OBJECT)

SETFSTRUCTURED-DATA-TAGS (NEW-VALUE OBJECT)

SUBDOCUMENT-TAGS (OBJECT)

SETFSUBDOCUMENT-TAGS (NEW-VALUE OBJECT)

TAG (OBJECT)

SETFTAG (NEW-VALUE OBJECT)

VARIABLE

Private

Undocumented

*BLANK*

*BLOCKQUOTE-INDENTATION*

*DEFAULT-STRUCTURED-DATA-TAGS*

*DEFAULT-SUBDOCUMENT-TAGS*

*SPACES-PER-TAB*

*TO-SKIP*

*VERBATIM-INDENTATION*

CLASS

Private

Undocumented

BLANK-LINES

ELEMENT

INDENTATION

PARSER

TOKEN (CONTENT OFFSET)