mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +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.
|
// This package helps break dependency cycles.
|
||||||
package regex_common
|
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
|
// VM limitations
|
||||||
MAX_CAPTURE_GROUPS :: max(#config(ODIN_REGEX_MAX_CAPTURE_GROUPS, 10), 10)
|
MAX_CAPTURE_GROUPS :: max(#config(ODIN_REGEX_MAX_CAPTURE_GROUPS, 10), 10)
|
||||||
MAX_PROGRAM_SIZE :: int(max(i16))
|
MAX_PROGRAM_SIZE :: int(max(i16))
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex_common
|
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"
|
@require import "core:os"
|
||||||
import "core:io"
|
import "core:io"
|
||||||
import "core:strings"
|
import "core:strings"
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex_compiler
|
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 "base:intrinsics"
|
||||||
import "core:text/regex/common"
|
import "core:text/regex/common"
|
||||||
import "core:text/regex/parser"
|
import "core:text/regex/parser"
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex_compiler
|
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 "base:intrinsics"
|
||||||
import "core:io"
|
import "core:io"
|
||||||
import "core:text/regex/common"
|
import "core:text/regex/common"
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex_optimizer
|
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"
|
import "base:intrinsics"
|
||||||
@require import "core:io"
|
@require import "core:io"
|
||||||
import "core:slice"
|
import "core:slice"
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex_parser
|
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"
|
import "core:io"
|
||||||
|
|
||||||
write_node :: proc(w: io.Writer, node: Node) {
|
write_node :: proc(w: io.Writer, node: Node) {
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex_parser
|
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 "base:intrinsics"
|
||||||
import "core:strconv"
|
import "core:strconv"
|
||||||
import "core:strings"
|
import "core:strings"
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex
|
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/common"
|
||||||
import "core:text/regex/compiler"
|
import "core:text/regex/compiler"
|
||||||
import "core:text/regex/optimizer"
|
import "core:text/regex/optimizer"
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex_tokenizer
|
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:text/regex/common"
|
||||||
import "core:unicode/utf8"
|
import "core:unicode/utf8"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex_vm
|
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 {
|
Opcode_Iterator :: struct {
|
||||||
code: Program,
|
code: Program,
|
||||||
pc: int,
|
pc: int,
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
package regex_vm
|
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"
|
import "base:intrinsics"
|
||||||
@require import "core:io"
|
@require import "core:io"
|
||||||
import "core:slice"
|
import "core:slice"
|
||||||
|
|||||||
Reference in New Issue
Block a user