Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bfontaine committed Oct 19, 2020
1 parent d97b93a commit 8430a18
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Grape Changelog

## 0.3.0 (unreleased)
## 0.3.0 (2020/10/19)

This release bumps Parsera. It’s now based on Antlr4 rather than Instaparse. This changes a few things:

Expand All @@ -18,6 +18,10 @@ The match metadata’s format changes:

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.

## 0.2.0 (2019/11/14)

* Add typed expression wildcards
Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<img align="right" width="150" src="./doc/grapes.png"/>

# Grape
**Grape** is a syntax-aware `grep`-like utility for Clojure code. It allows one
to search for code patterns using Clojure structures.
**Grape** is a syntax-aware `grep`-like utility for Clojure code. It allows one to search for code
patterns using Clojure structures.

## Command-Line
This is experimental for now.
Expand All @@ -16,14 +16,23 @@ If you have [Homebrew](https://brew.sh), you can install it like so:
brew install bfontaine/utils/grape
```

For example, to find all usages of `map` called with a function and two sequences:

```
% grape -r '(map $ $ $)' src
(map match?
trees
patterns)
```

## Library

```clojure
;; Lein/Boot
[bfontaine/grape "0.2.0"]
[bfontaine/grape "0.3.0"]

;; Deps
bfontaine/grape {:mvn/version "0.2.0"}
bfontaine/grape {:mvn/version "0.3.0"}
```


Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject bfontaine/grape "0.3.0-SNAPSHOT"
(defproject bfontaine/grape "0.3.0"
:description "Syntax-aware Grep-like for Clojure code"
:url "https://github.com/bfontaine/grape"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
Expand Down
2 changes: 1 addition & 1 deletion resources/GRAPE_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0-SNAPSHOT
0.3.0

0 comments on commit 8430a18

Please sign in to comment.