diff options
author | Sharlatan Hellseher <[email protected]> | 2024-12-12 13:56:40 +0000 |
---|---|---|
committer | Sharlatan Hellseher <[email protected]> | 2025-01-21 23:41:53 +0000 |
commit | 55b93f7e17ec36c28e8a4faa36793bcd5421f2c3 (patch) | |
tree | 424fd17d694e3ad5fe58d94def1771a798d8ee4f /gnu | |
parent | 1692284a8f9d2a1e4728a2486979a34ed595835b (diff) |
gnu: Add go-github-com-goccmack-gocc.
* gnu/packages/golang-build.scm (go-github-com-goccmack-gocc): New variable.
Change-Id: Ia81fe771b6acd086d5ecfc194f6f02cd44b7b6dc
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/golang-build.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm index 4a87a4b61a..bb92783775 100644 --- a/gnu/packages/golang-build.scm +++ b/gnu/packages/golang-build.scm @@ -59,6 +59,37 @@ ;;; ;;; Code: +(define-public go-github-com-goccmack-gocc + (package + (name "go-github-com-goccmack-gocc") + (version "0.0.0-20230228185258-2292f9e40198") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/goccmack/gocc") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ah1z1bmn9y9sbh2z1jxsjgsrv1rfrzzzi4c4nq646z2n25c2x8s")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/goccmack/gocc" + ;; Test requiring gocc in PATH. + #:test-flags #~(list "-skip" "TestEmptyKeyword"))) + (propagated-inputs + (list go-golang-org-x-mod)) + (home-page "https://github.com/goccmack/gocc") + (synopsis "Parser/Scanner Generator") + (description + "Gocc is a compiler kit for Go written in Go. Gocc generates lexers and +parsers or stand-alone DFAs or parsers from a BNF. Lexers are DFAs, which +recognise regular languages. Gocc lexers accept UTF-8 input. Gocc parsers are +PDAs, which recognise LR-1 languages. Optional LR1 conflict handling +automatically resolves shift / reduce and reduce / reduce conflicts.") + (license license:asl2.0))) + (define-public go-github-com-golang-glog (package (name "go-github-com-golang-glog") |