Liking cljdoc? Tell your friends :D

cljs.tools.reader.reader-types

cljs

Protocols and default Reader types implementation

Protocols and default Reader types implementation
raw docstring

indexing-push-back-readercljs

(indexing-push-back-reader s-or-rdr)
(indexing-push-back-reader s-or-rdr buf-len)
(indexing-push-back-reader s-or-rdr buf-len file-name)

Creates an IndexingPushbackReader from a given string or PushbackReader

Creates an IndexingPushbackReader from a given string or PushbackReader
raw docstring

indexing-reader?cljs

(indexing-reader? rdr)

Returns true if the reader satisfies IndexingReader

Returns true if the reader satisfies IndexingReader
raw docstring

IndexingPushbackReadercljs


IndexingReadercljsprotocol

get-column-numbercljs

(get-column-number reader)

Returns the column number of the next character to be read from the stream

Returns the column number of the next character to be read from the stream

get-file-namecljs

(get-file-name reader)

Returns the file name the reader is reading from, or nil

Returns the file name the reader is reading from, or nil

get-line-numbercljs

(get-line-number reader)

Returns the line number of the next character to be read from the stream

Returns the line number of the next character to be read from the stream

IPushbackReadercljsprotocol

unreadcljs

(unread reader ch)

Pushes back a single character on to the stream

Pushes back a single character on to the stream

line-start?cljs

(line-start? rdr)

Returns true if rdr is an IndexingReader and the current char starts a new line

Returns true if rdr is an IndexingReader and the current char starts a new line
raw docstring

log-sourceclj/smacro

(log-source reader & body)

If reader is a SourceLoggingPushbackReader, execute body in a source logging context. Otherwise, execute body, returning the result.

If reader is a SourceLoggingPushbackReader, execute body in a source
logging context. Otherwise, execute body, returning the result.
raw docstring

log-source*cljs

(log-source* reader f)

merge-metacljs

(merge-meta obj m)

Returns an object of the same type and value as obj, with its metadata merged over m.

Returns an object of the same type and value as `obj`, with its
metadata merged over `m`.
raw docstring

node-readable-push-back-readercljs

(node-readable-push-back-reader readable)

NodeReadableReadercljs


PushbackReadercljs


read-linecljs

(read-line rdr)

Reads a line from the reader or from in if no reader is specified

Reads a line from the reader or from *in* if no reader is specified
raw docstring

Readercljsprotocol

peek-charcljs

(peek-char reader)

Returns the next char from the Reader without removing it from the reader stream

Returns the next char from the Reader without removing it from the reader stream

read-charcljs

(read-char reader)

Returns the next char from the Reader, nil if the end of stream has been reached

Returns the next char from the Reader, nil if the end of stream has been reached

source-logging-push-back-readercljs

(source-logging-push-back-reader s-or-rdr)
(source-logging-push-back-reader s-or-rdr buf-len)
(source-logging-push-back-reader s-or-rdr buf-len file-name)

Creates a SourceLoggingPushbackReader from a given string or PushbackReader

Creates a SourceLoggingPushbackReader from a given string or PushbackReader
raw docstring

source-logging-reader?cljs

(source-logging-reader? rdr)

SourceLoggingPushbackReadercljs


string-push-back-readercljs

(string-push-back-reader s)
(string-push-back-reader s buf-len)

Creates a PushbackReader from a given string

Creates a PushbackReader from a given string
raw docstring

string-readercljs

(string-reader s)

Creates a StringReader from a given string

Creates a StringReader from a given string
raw docstring

StringReadercljs

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close