mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 23:33:15 +00:00
Add explicit license info to core:text/regex
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
// This package helps break dependency cycles.
|
||||
package regex_common
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
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))
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex_common
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
Made available under Odin's BSD-3 license.
|
||||
|
||||
List of contributors:
|
||||
Feoramund: Initial implementation.
|
||||
*/
|
||||
|
||||
@require import "core:os"
|
||||
import "core:io"
|
||||
import "core:strings"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex_compiler
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
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"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex_compiler
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
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"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex_optimizer
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
Made available under Odin's BSD-3 license.
|
||||
|
||||
List of contributors:
|
||||
Feoramund: Initial implementation.
|
||||
*/
|
||||
|
||||
import "base:intrinsics"
|
||||
@require import "core:io"
|
||||
import "core:slice"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex_parser
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
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) {
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex_parser
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
Made available under Odin's BSD-3 license.
|
||||
|
||||
List of contributors:
|
||||
Feoramund: Initial implementation.
|
||||
*/
|
||||
|
||||
import "base:intrinsics"
|
||||
import "core:strconv"
|
||||
import "core:strings"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
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"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex_tokenizer
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
Made available under Odin's BSD-3 license.
|
||||
|
||||
List of contributors:
|
||||
Feoramund: Initial implementation.
|
||||
*/
|
||||
|
||||
import "core:text/regex/common"
|
||||
import "core:unicode/utf8"
|
||||
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex_vm
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
Made available under Odin's BSD-3 license.
|
||||
|
||||
List of contributors:
|
||||
Feoramund: Initial implementation.
|
||||
*/
|
||||
|
||||
Opcode_Iterator :: struct {
|
||||
code: Program,
|
||||
pc: int,
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package regex_vm
|
||||
|
||||
/*
|
||||
(c) Copyright 2024 Feoramund <rune@swevencraft.org>.
|
||||
Made available under Odin's BSD-3 license.
|
||||
|
||||
List of contributors:
|
||||
Feoramund: Initial implementation.
|
||||
*/
|
||||
|
||||
import "base:intrinsics"
|
||||
@require import "core:io"
|
||||
import "core:slice"
|
||||
|
||||
Reference in New Issue
Block a user