$keyword& and $number$ (#2)grape.impl.*) to facilitate future evolutions--line-numbers nonegrape.core/unparse-code now accept an optional map of options. Only :inline? is supported for now; it forces code
to fit on one line by removing newlines and comments and compacting whitespaces.--version that was failing with an IllegalArgumentException (#1)stdin if no path is given- as a special path to read from stdin. If - is used multiple times, only the first one is effective.--line-numbers first|all|none to control how line numbers are shown-N/--no-line-numbers as an alias to --line-numbers none-n/--all-line-numbers as an alias to --line-numbers all--no-trailing-newlines to remove the (new) trailing newline after each match--inline to always show matches on a single line$ was matching whitespacesgrape.core/count-subtrees and grape.core/count-codesgrape is run on multiple files-v/--version to the command-line-c/--count to show the total matches count-F/--no-filenames to hide the matching filenames-u/--unindent to un-indent the matches-r/--recursive: it’s always recursive nowgrape.core into grape.impl.models, grape.impl.match and grape.impl.parsingThis release bumps Parsera. It’s now based on Antlr4 rather than Instaparse. This changes a few things:
The match metadata’s format changes:
;; Before
{:start-column 1, :end-column 10
:start-line 1, :end-line 1
:start-index 0, :end-index 9}
;; After
{:start {:row 1 :column 1}
:end {:row 0 :column 9}}
Some typed wildcards change: $simple-keyword is now $keyword and $function is now $fn.
This release also includes a first GraalVM-based standalone binary. Thanks to both GraalVM and the new Parcera
implementation, grape is tremendously faster: on my machine, searching for (map $ $ $) in grape’s own
source code takes ~2s with the v0.2.0 and ~0.06s with the v0.3.0.
Initial release.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |