Unlicens the code and add SPDX identifier to files

This commit is contained in:
Brandon Dyck 2024-09-18 16:28:53 -06:00
parent 51eab78878
commit 1436be3c10
18 changed files with 56 additions and 16 deletions

View File

@ -1,15 +0,0 @@
ISC License
Copyright 2024 Brandon Dyck
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.

View File

@ -3,5 +3,4 @@ Think about not requiring so much Pos() when making messages
Rename Seq2 to Seq
Document Seq
Should MakeState be private now that there's Run?
Add SPDX tags
What's Megaparsec got that we ain't got?

22
UNLICENSE Normal file
View File

@ -0,0 +1,22 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,5 +1,7 @@
// GENERATED FILE. DO NOT EDIT.
// SPDX-License-Identifier: Unlicense
package gigaparsec
// Bind combines p with a parser created by f that depends on p's result value.

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package bytes
import (

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package bytes_test
import (

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package cursor
import (

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package cursor_test
import (

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package cursor
import (

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package cursor_test
import "testing"

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package gigaparsec
//go:generate go run ./internal/bindgen -bindpath bind.go -seqpath seq.go -max 5 -pkg gigaparsec

View File

@ -1,3 +1,5 @@
{{/* SPDX-License-Identifier: Unlicense */ -}}
{{define "fparams" -}}
{{with $max := .}}{{range .Count}} f{{.}} func(T{{.}}) Parser[In, {{if eq . $max}}Out{{else}}T{{.Next}}{{end}}],
{{end}}{{end}}{{end -}}
@ -31,6 +33,8 @@ func Bind{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
// GENERATED FILE. DO NOT EDIT.
// SPDX-License-Identifier: Unlicense
package {{.Package}}
{{range .Count}}
{{template "func" .}}

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package main
import (

View File

@ -1,3 +1,5 @@
{{/* SPDX-License-Identifier: Unlicense */ -}}
{{define "func"}}{{if gt . 1 -}}
func Seq{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
{{- range .Count}}
@ -28,6 +30,8 @@ func Seq{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
// GENERATED FILE. DO NOT EDIT.
// SPDX-License-Identifier: Unlicense
package {{.Package}}
{{range .Count}}{{template "func" .}}

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package gigaparsec_test
import (

2
seq.go
View File

@ -1,5 +1,7 @@
// GENERATED FILE. DO NOT EDIT.
// SPDX-License-Identifier: Unlicense
package gigaparsec
func Seq2[In, Out, T, T2 any](

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package generator
import (

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
// Package test contains helpers for testing parsers.
package test