CrossClj

1.4.9 docs

SourceDocs



RECENT
    VARS
    *diagnostic-char-lookahead*
    *trace*
    ->Failure
    ->Node
    ->Segment
    ->Tramp
    -full-parse
    -parse
    alt-full-parse
    alt-parse
    attach-diagnostic-meta
    bind-trace
    build-node-with-meta
    build-total-failure-node
    cat-full-parse
    cat-parse
    CatFullListener
    CatListener
    char-range-full-parse
    char-range-parse
    code-point->chars
    dpprint
    dprintln
    epsilon-full-parse
    epsilon-parse
    equals-ignore-case
    fail
    failure-type
    full-listener-exists?
    full-result-exists?
    get-parser
    listener-exists?
    log
    lookahead-full-parse
    lookahead-parse
    LookListener
    make-node
    make-success
    make-tramp
    map->Failure
    map->Node
    map->Tramp
    merge-meta
    merge-negative-listeners
    negative-lookahead-parse
    node-get
    NodeListener
    non-terminal-full-parse
    non-terminal-parse
    opt-full-parse
    opt-parse
    ordered-alt-full-parse
    ordered-alt-parse
    parse
    parse-total
    parse-total-after-fail
    parses
    parses-total
    parses-total-after-fail
    plus-full-parse
    plus-parse
    PlusFullListener
    PlusListener
    PRINT
    PROFILE
    profile
    push-full-listener
    push-listener
    push-message
    push-negative-listener
    push-result
    push-stack
    re-match-at-front
    regexp-full-parse
    regexp-parse
    rep-full-parse
    rep-parse
    RepFullListener
    RepListener
    result-exists?
    run
    safe-with-meta
    single-char-code-at
    star-full-parse
    star-parse
    start-parser
    step
    string-case-insensitive-full-parse
    string-case-insensitive-parse
    string-context
    string-full-parse
    string-parse
    sub-sequence
    success
    text->segment
    TopListener
    total-success?
    TRACE
    trace-or-false
    unicode-code-point-at

    « Index of all namespaces of this project

    The heart of the parsing mechanism.  Contains the trampoline structure,
    the parsing dispatch function, the nodes where listeners are stored,
    the different types of listeners, and the loop for executing the various
    listeners and parse commands that are on the stack.
    (->Failure index reason)
    Positional factory function for class instaparse.gll.Failure.
    
    (->Node listeners full-listeners results full-results)
    Positional factory function for class instaparse.gll.Node.
    
    (->Segment s offset count)
    Positional factory function for class instaparse.gll.Segment.
    
    (->Tramp grammar text segment fail-index node-builder stack next-stack generation negative-listeners msg-cache nodes success failure trace?)
    Positional factory function for class instaparse.gll.Tramp.
    
    (-full-parse parser index tramp)
    (-parse parser index tramp)
    (alt-full-parse this index tramp)
    (alt-parse this index tramp)
    macro
    (attach-diagnostic-meta f metadata)
    macro
    (bind-trace trace? body)
    (build-node-with-meta node-builder tag content start end)
    (build-total-failure-node node-builder start text)
    (cat-full-parse this index tramp)
    (cat-parse this index tramp)
    (CatFullListener results-so-far parser-sequence node-key tramp)
    (CatListener results-so-far parser-sequence node-key tramp)
    (char-range-full-parse this index tramp)
    (char-range-parse this index tramp)
    (code-point->chars code-point)
    Takes a Unicode code point, and returns a string of one or two chars.
    
    macro
    (dpprint & body)
    macro
    (dprintln & body)
    (epsilon-full-parse this index tramp)
    (epsilon-parse this index tramp)
    (equals-ignore-case s1 s2)
    (fail tramp node-key index reason)
    (full-listener-exists? tramp node-key)
    Tests whether node already has a listener or full-listener
    
    (full-result-exists? tramp node-key)
    Tests whether node has a full-result
    
    (get-parser grammar p)
    (listener-exists? tramp node-key)
    Tests whether node already has a listener
    
    macro
    (log tramp & body)
    (lookahead-full-parse this index tramp)
    (lookahead-parse this index tramp)
    (LookListener node-key tramp)
    (make-success result index)
    (make-tramp grammar text)(make-tramp grammar text segment)(make-tramp grammar text fail-index node-builder)(make-tramp grammar text segment fail-index node-builder)
    (map->Failure m__7585__auto__)
    Factory function for class instaparse.gll.Failure, taking a map of keywords to field values.
    
    (map->Node m__7585__auto__)
    Factory function for class instaparse.gll.Node, taking a map of keywords to field values.
    
    (map->Tramp m__7585__auto__)
    Factory function for class instaparse.gll.Tramp, taking a map of keywords to field values.
    
    (merge-meta obj metamap)
    A variation on with-meta that merges the existing metamap into the new metamap,
    rather than overwriting the metamap entirely.
    (negative-lookahead-parse this index tramp)
    (node-get tramp node-key)
    Gets node if already exists, otherwise creates one
    
    (NodeListener node-key tramp)
    (non-terminal-full-parse this index tramp)
    (non-terminal-parse this index tramp)
    (opt-full-parse this index tramp)
    (opt-parse this index tramp)
    (ordered-alt-full-parse this index tramp)
    (ordered-alt-parse this index tramp)
    (parse grammar start text partial?)
    (parse-total grammar start text partial? node-builder)
    (parse-total-after-fail grammar start text fail-index partial? node-builder)
    (parses grammar start text partial?)
    (parses-total grammar start text partial? node-builder)
    (parses-total-after-fail grammar start text fail-index partial? node-builder)
    (plus-full-parse this index tramp)
    (plus-parse this index tramp)
    (PlusFullListener results-so-far parser prev-index node-key tramp)
    (PlusListener results-so-far parser prev-index node-key tramp)
    macro
    (profile & body)
    (push-full-listener tramp node-key listener)
    Pushes a listener into the trampoline's node.
    Schedules notification to listener of all existing full results.
    (push-listener tramp node-key listener)
    Pushes a listener into the trampoline's node.
    Schedules notification to listener of all existing results.
    Initiates parse if necessary
    (push-message tramp listener result)
    Pushes onto stack a message to a given listener about a result
    
    (push-negative-listener tramp creator negative-listener)
    Pushes a thunk onto the trampoline's negative-listener stack.
    
    (push-result tramp node-key result)
    Pushes a result into the trampoline's node.
    Categorizes as either result or full-result.
    Schedules notification to all existing listeners of result
    (Full listeners only get notified about full results)
    (push-stack tramp item)
    Pushes an item onto the trampoline's stack
    
    (re-match-at-front regexp text)
    (regexp-full-parse this index tramp)
    (regexp-parse this index tramp)
    (rep-full-parse this index tramp)
    (rep-parse this index tramp)
    (RepFullListener results-so-far parser m n prev-index node-key tramp)
    (RepListener results-so-far parser m n prev-index node-key tramp)
    (result-exists? tramp node-key)
    Tests whether node has a result or full-result
    
    (run tramp)(run tramp found-result?)
    Executes the stack until exhausted
    
    (safe-with-meta obj metamap)
    (single-char-code-at text index)
    Returns the int value of a single char at the given index,
    assuming we're looking for up to 0xFFFF (the maximum value for a
    UTF-16 single char).
    (star-full-parse this index tramp)
    (star-parse this index tramp)
    (start-parser tramp parser partial?)
    (step stack)
    Executes one thing on the stack (not threadsafe)
    
    (string-case-insensitive-full-parse this index tramp)
    (string-case-insensitive-parse this index tramp)
    (string-context text index)
    (string-full-parse this index tramp)
    (string-parse this index tramp)
    (sub-sequence text start)(sub-sequence text start end)
    Like clojure.core/subs but consumes and returns a CharSequence
    
    macro
    (success tramp node-key result end)
    (text->segment text)
    Converts text to a Segment, which has fast subsequencing
    
    (TopListener tramp)
    (total-success? tramp s)
    macro
    (trace-or-false)
    (unicode-code-point-at text index)
    Returns the unicode code point representing one or two chars at
    the given index.