sharlatan pushed a commit to branch go-team
in repository guix.

commit 5b2dd44907c86d9c339d45b5b8aff333e398efac
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Dec 12 13:56:40 2024 +0000

    gnu: Add go-github-com-goccmack-gocc.
    
    * gnu/packages/golang-build.scm (go-github-com-goccmack-gocc): New variable.
    
    Change-Id: Ia81fe771b6acd086d5ecfc194f6f02cd44b7b6dc
---
 gnu/packages/golang-build.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

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")

Reply via email to