-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.lisp
37 lines (32 loc) · 1.06 KB
/
core.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
;;;; core.lisp -- Core software search replace implementation.
(defpackage :resolve/core
(:use :gt/full
:software-evolution-library/utility/git)
(:import-from :fare-quasiquote)
(:export :+resolve-dir+
:+resolve-version+
:+resolve-branch+
:define-pattern-matching-weakening-mutation
:resolve-readtable))
(in-package :resolve/core)
(in-readtable :curry-compose-reader-macros)
;;;; RESOLVE Constants.
(defvar +resolve-dir+
(pathname-directory
#.(or *compile-file-truename*
*load-truename*
*default-pathname-defaults*))
"Path to directory holding RESOLVE.")
(defvar +resolve-version+
(eval-when (:compile-toplevel :load-toplevel :execute)
(current-git-commit +resolve-dir+))
"Current version of the RESOLVE library.")
(defvar +resolve-branch+
(eval-when (:compile-toplevel :load-toplevel :execute)
(current-git-branch +resolve-dir+))
"Current branch of the RESOLVE library.")
(defreadtable resolve-readtable
(:fuse
:standard
:curry-compose-reader-macros
:fare-quasiquote))