Liking cljdoc? Tell your friends :D

pebblestream.directives.parse

Parses a line of textual PebbleScript into a directive:

pebblestream:join("Rates", "id", "rate-id") => {:directive :join :syntax :paren :args ["Rates" "id" "rate-id"]}

Accepted forms: bare (pebblestream:unique), parentheses (pebblestream:sum("amount", "total")) and the deprecated colon form (pebblestream:hint:key:value, pebblestream:allowed-values:a:b), whose arguments are separated by colons only.

Arguments parse to: "text" or Name a string (quoted strings use the escape rules in pebblestream.parse-str; unquoted names have no spaces) 'Sheet Name' a string, Excel's single-quoted sheet notation 12, -0.5 a number :latest a keyword (flags) Inputs!B2, 'Rates'!$C$4 {:ref "Inputs!B2"}, a cell reference; it must name its worksheet, so B2 alone is a name "Date":desc {:column "Date" :order :desc}, a sort column "<="&"Balance" {:operator "<=" :column "Balance"} "<"&Inputs!B2 {:operator "<" :ref "Inputs!B2"}

Parses a line of textual PebbleScript into a directive:

  pebblestream:join("Rates", "id", "rate-id")
  => {:directive :join :syntax :paren :args ["Rates" "id" "rate-id"]}

Accepted forms: bare (pebblestream:unique), parentheses
(pebblestream:sum("amount", "total")) and the deprecated colon form
(pebblestream:hint:key:value, pebblestream:allowed-values:a:b), whose
arguments are separated by colons only.

Arguments parse to:
  "text" or Name           a string (quoted strings use the escape rules
                           in pebblestream.parse-str; unquoted names have
                           no spaces)
  'Sheet Name'             a string, Excel's single-quoted sheet notation
  12, -0.5                 a number
  :latest                  a keyword (flags)
  Inputs!B2, 'Rates'!$C$4  {:ref "Inputs!B2"}, a cell reference; it must
                           name its worksheet, so B2 alone is a name
  "Date":desc              {:column "Date" :order :desc}, a sort column
  "<="&"Balance"           {:operator "<=" :column "Balance"}
  "<"&Inputs!B2            {:operator "<" :ref "Inputs!B2"}
raw docstring

directive-line?clj/s

(directive-line? line)

True when an annotation line is a directive (begins with pebblestream:).

True when an annotation line is a directive (begins with pebblestream:).
sourceraw docstring

parse-lineclj/s

(parse-line line)

Parses one annotation line. Returns {:directive :join :syntax :paren :args [...] :warnings [...]} or {:error message :text line} when the line cannot be read. Directive names are returned as keywords; pebblestream:div/0 is :div-0.

Parses one annotation line. Returns
  {:directive :join :syntax :paren :args [...] :warnings [...]}
or {:error message :text line} when the line cannot be read. Directive
names are returned as keywords; pebblestream:div/0 is :div-0.
sourceraw docstring

prefixclj/s

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close