浏览代码

Add explicit license info to `core:text/regex`

Feoramund 1 年之前
父节点
当前提交
14858309f0

+ 8 - 0
core/text/regex/common/common.odin

@@ -1,6 +1,14 @@
 // This package helps break dependency cycles.
 package regex_common
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 // VM limitations
 MAX_CAPTURE_GROUPS :: max(#config(ODIN_REGEX_MAX_CAPTURE_GROUPS, 10), 10)
 MAX_PROGRAM_SIZE   :: int(max(i16))

+ 8 - 0
core/text/regex/common/debugging.odin

@@ -1,5 +1,13 @@
 package regex_common
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 @require import "core:os"
 import "core:io"
 import "core:strings"

+ 8 - 0
core/text/regex/compiler/compiler.odin

@@ -1,5 +1,13 @@
 package regex_compiler
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 import "base:intrinsics"
 import "core:text/regex/common"
 import "core:text/regex/parser"

+ 8 - 0
core/text/regex/compiler/debugging.odin

@@ -1,5 +1,13 @@
 package regex_compiler
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 import "base:intrinsics"
 import "core:io"
 import "core:text/regex/common"

+ 8 - 0
core/text/regex/optimizer/optimizer.odin

@@ -1,5 +1,13 @@
 package regex_optimizer
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 import "base:intrinsics"
 @require import "core:io"
 import "core:slice"

+ 8 - 0
core/text/regex/parser/debugging.odin

@@ -1,5 +1,13 @@
 package regex_parser
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 import "core:io"
 
 write_node :: proc(w: io.Writer, node: Node) {

+ 8 - 0
core/text/regex/parser/parser.odin

@@ -1,5 +1,13 @@
 package regex_parser
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 import "base:intrinsics"
 import "core:strconv"
 import "core:strings"

+ 8 - 0
core/text/regex/regex.odin

@@ -1,5 +1,13 @@
 package regex
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 import "core:text/regex/common"
 import "core:text/regex/compiler"
 import "core:text/regex/optimizer"

+ 8 - 0
core/text/regex/tokenizer/tokenizer.odin

@@ -1,5 +1,13 @@
 package regex_tokenizer
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 import "core:text/regex/common"
 import "core:unicode/utf8"
 

+ 8 - 0
core/text/regex/virtual_machine/util.odin

@@ -1,5 +1,13 @@
 package regex_vm
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 Opcode_Iterator :: struct {
 	code: Program,
 	pc: int,

+ 8 - 0
core/text/regex/virtual_machine/virtual_machine.odin

@@ -1,5 +1,13 @@
 package regex_vm
 
+/*
+	(c) Copyright 2024 Feoramund <[email protected]>.
+	Made available under Odin's BSD-3 license.
+
+	List of contributors:
+		Feoramund: Initial implementation.
+*/
+
 import "base:intrinsics"
 @require import "core:io"
 import "core:slice"