From a73ac60951a19723f7f95898f84b6282bb826d38 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Fri, 8 Nov 2024 19:00:51 +0100 Subject: [PATCH] +github.com/blynn/nex (#7861) Co-authored-by: Jacob Heider --- projects/github.com/blynn/nex/README.md | 10 +++++++ projects/github.com/blynn/nex/package.yml | 34 +++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 projects/github.com/blynn/nex/README.md create mode 100644 projects/github.com/blynn/nex/package.yml diff --git a/projects/github.com/blynn/nex/README.md b/projects/github.com/blynn/nex/README.md new file mode 100644 index 0000000000..819a9eafd5 --- /dev/null +++ b/projects/github.com/blynn/nex/README.md @@ -0,0 +1,10 @@ +Nex is a lexer similar to Lex/Flex that: + +- generates Go code instead of C code + +- integrates with Go’s yacc instead of YACC/Bison + +- supports UTF-8 + +- supports nested structural regular expressions. + diff --git a/projects/github.com/blynn/nex/package.yml b/projects/github.com/blynn/nex/package.yml new file mode 100644 index 0000000000..28954e12fe --- /dev/null +++ b/projects/github.com/blynn/nex/package.yml @@ -0,0 +1,34 @@ +distributable: + url: https://github.com/blynn/nex/archive/1a3320dab988372f8910ccc838a6a7a45c8980ff.tar.gz + strip-components: 1 + +display-name: nex + +versions: +# no versions published, use the last code available +- 2021.3.30 + +build: + dependencies: + rsync.samba.org: '*' + go.dev: ^1.20 + env: + CGO_ENABLED: 0 + GO_LDFLAGS: + - -s + - -w + linux: + GO_LDFLAGS: + - -buildmode=pie + script: + - go build -v -ldflags="${GO_LDFLAGS}" -o "{{prefix}}"/bin/nex ./main.go ./nex.go + - rsync -avH ./test "{{prefix}}" + - rsync -avH ./props/README.md "{{prefix}}/share/" + +provides: +- bin/nex + +test: + dependencies: + go.dev: '*' + script: nex -r -s {{prefix}}/test/lc.nex < "{{prefix}}/share/README.md"