CrossClj

1.4.9 docs

SourceDocs



RECENT
    VARS
    augment-failure
    get-line
    index->line-column
    marker
    pprint-failure
    print-reason

    « Index of all namespaces of this project

    Facilities for printing and manipulating error messages.
    
    (augment-failure failure text)
    Adds text, line, and column info to failure object.
    
    (get-line n text)
    Returns nth line of text, 1-based
    
    (index->line-column index text)
    Takes an index into text, and determines the line and column info
    
    (marker n)
    Creates string with caret at nth position, 1-based
    
    (pprint-failure {:keys [line column text reason]})
    Takes an augmented failure object and prints the error message
    
    (print-reason r)
    Provides special case for printing negative lookahead reasons