Skip to content

Commit

Permalink
+github.com/blynn/nex (#7861)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Heider <[email protected]>
  • Loading branch information
tannevaled and jhheider authored Nov 8, 2024
1 parent ce792b1 commit a73ac60
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
10 changes: 10 additions & 0 deletions projects/github.com/blynn/nex/README.md
Original file line number Diff line number Diff line change
@@ -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.

34 changes: 34 additions & 0 deletions projects/github.com/blynn/nex/package.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a73ac60

Please sign in to comment.