Unlicens the code and add SPDX identifier to files
This commit is contained in:
parent
51eab78878
commit
1436be3c10
15
LICENSE.txt
15
LICENSE.txt
@ -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.
|
|
1
TODO.txt
1
TODO.txt
@ -3,5 +3,4 @@ Think about not requiring so much Pos() when making messages
|
|||||||
Rename Seq2 to Seq
|
Rename Seq2 to Seq
|
||||||
Document Seq
|
Document Seq
|
||||||
Should MakeState be private now that there's Run?
|
Should MakeState be private now that there's Run?
|
||||||
Add SPDX tags
|
|
||||||
What's Megaparsec got that we ain't got?
|
What's Megaparsec got that we ain't got?
|
||||||
|
22
UNLICENSE
Normal file
22
UNLICENSE
Normal 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.
|
2
bind.go
2
bind.go
@ -1,5 +1,7 @@
|
|||||||
// GENERATED FILE. DO NOT EDIT.
|
// GENERATED FILE. DO NOT EDIT.
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package gigaparsec
|
package gigaparsec
|
||||||
|
|
||||||
// Bind combines p with a parser created by f that depends on p's result value.
|
// Bind combines p with a parser created by f that depends on p's result value.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package bytes
|
package bytes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package bytes_test
|
package bytes_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package cursor
|
package cursor
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package cursor_test
|
package cursor_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package cursor
|
package cursor
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package cursor_test
|
package cursor_test
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package gigaparsec
|
package gigaparsec
|
||||||
|
|
||||||
//go:generate go run ./internal/bindgen -bindpath bind.go -seqpath seq.go -max 5 -pkg gigaparsec
|
//go:generate go run ./internal/bindgen -bindpath bind.go -seqpath seq.go -max 5 -pkg gigaparsec
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{{/* SPDX-License-Identifier: Unlicense */ -}}
|
||||||
|
|
||||||
{{define "fparams" -}}
|
{{define "fparams" -}}
|
||||||
{{with $max := .}}{{range .Count}} f{{.}} func(T{{.}}) Parser[In, {{if eq . $max}}Out{{else}}T{{.Next}}{{end}}],
|
{{with $max := .}}{{range .Count}} f{{.}} func(T{{.}}) Parser[In, {{if eq . $max}}Out{{else}}T{{.Next}}{{end}}],
|
||||||
{{end}}{{end}}{{end -}}
|
{{end}}{{end}}{{end -}}
|
||||||
@ -31,6 +33,8 @@ func Bind{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
|
|||||||
|
|
||||||
// GENERATED FILE. DO NOT EDIT.
|
// GENERATED FILE. DO NOT EDIT.
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package {{.Package}}
|
package {{.Package}}
|
||||||
{{range .Count}}
|
{{range .Count}}
|
||||||
{{template "func" .}}
|
{{template "func" .}}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{{/* SPDX-License-Identifier: Unlicense */ -}}
|
||||||
|
|
||||||
{{define "func"}}{{if gt . 1 -}}
|
{{define "func"}}{{if gt . 1 -}}
|
||||||
func Seq{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
|
func Seq{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
|
||||||
{{- range .Count}}
|
{{- range .Count}}
|
||||||
@ -28,6 +30,8 @@ func Seq{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
|
|||||||
|
|
||||||
// GENERATED FILE. DO NOT EDIT.
|
// GENERATED FILE. DO NOT EDIT.
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package {{.Package}}
|
package {{.Package}}
|
||||||
{{range .Count}}{{template "func" .}}
|
{{range .Count}}{{template "func" .}}
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package gigaparsec_test
|
package gigaparsec_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
2
seq.go
2
seq.go
@ -1,5 +1,7 @@
|
|||||||
// GENERATED FILE. DO NOT EDIT.
|
// GENERATED FILE. DO NOT EDIT.
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package gigaparsec
|
package gigaparsec
|
||||||
|
|
||||||
func Seq2[In, Out, T, T2 any](
|
func Seq2[In, Out, T, T2 any](
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
package generator
|
package generator
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
// Package test contains helpers for testing parsers.
|
// Package test contains helpers for testing parsers.
|
||||||
package test
|
package test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user