2023-10-27 18:03:17 +03:00
|
|
|
add_subdirectory(LibAccelGfx)
|
2021-03-18 17:22:05 +03:00
|
|
|
add_subdirectory(LibArchive)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibAudio)
|
|
|
|
add_subdirectory(LibC)
|
2021-05-20 14:01:14 +03:00
|
|
|
add_subdirectory(LibCards)
|
2020-08-19 00:02:53 +03:00
|
|
|
add_subdirectory(LibChess)
|
2023-03-03 15:12:56 +03:00
|
|
|
add_subdirectory(LibCMake)
|
2022-05-14 17:09:24 +03:00
|
|
|
add_subdirectory(LibCodeComprehension)
|
LibRegex: Add a regular expression library
This commit is a mix of several commits, squashed into one because the
commits before 'Move regex to own Library and fix all the broken stuff'
were not fixable in any elegant way.
The commits are listed below for "historical" purposes:
- AK: Add options/flags and Errors for regular expressions
Flags can be provided for any possible flavour by adding a new scoped enum.
Handling of flags is done by templated Options class and the overloaded
'|' and '&' operators.
- AK: Add Lexer for regular expressions
The lexer parses the input and extracts tokens needed to parse a regular
expression.
- AK: Add regex Parser and PosixExtendedParser
This patchset adds a abstract parser class that can be derived to implement
different parsers. A parser produces bytecode to be executed within the
regex matcher.
- AK: Add regex matcher
This patchset adds an regex matcher based on the principles of the T-REX VM.
The bytecode pruduced by the respective Parser is put into the matcher and
the VM will recursively execute the bytecode according to the available OpCodes.
Possible improvement: the recursion could be replaced by multi threading capabilities.
To match a Regular expression, e.g. for the Posix standard regular expression matcher
use the following API:
```
Pattern<PosixExtendedParser> pattern("^.*$");
auto result = pattern.match("Well, hello friends!\nHello World!"); // Match whole needle
EXPECT(result.count == 1);
EXPECT(result.matches.at(0).view.starts_with("Well"));
EXPECT(result.matches.at(0).view.end() == "!");
result = pattern.match("Well, hello friends!\nHello World!", PosixFlags::Multiline); // Match line by line
EXPECT(result.count == 2);
EXPECT(result.matches.at(0).view == "Well, hello friends!");
EXPECT(result.matches.at(1).view == "Hello World!");
EXPECT(pattern.has_match("Well,....")); // Just check if match without a result, which saves some resources.
```
- AK: Rework regex to work with opcodes objects
This patchsets reworks the matcher to work on a more structured base.
For that an abstract OpCode class and derived classes for the specific
OpCodes have been added. The respective opcode logic is contained in
each respective execute() method.
- AK: Add benchmark for regex
- AK: Some optimization in regex for runtime and memory
- LibRegex: Move regex to own Library and fix all the broken stuff
Now regex works again and grep utility is also in place for testing.
This commit also fixes the use of regex.h in C by making `regex_t`
an opaque (-ish) type, which makes its behaviour consistent between
C and C++ compilers.
Previously, <regex.h> would've blown C compilers up, and even if it
didn't, would've caused a leak in C code, and not in C++ code (due to
the existence of `OwnPtr` inside the struct).
To make this whole ordeal easier to deal with (for now), this pulls the
definitions of `reg*()` into LibRegex.
pros:
- The circular dependency between LibC and LibRegex is broken
- Eaiser to test (without accidentally pulling in the host's libc!)
cons:
- Using any of the regex.h functions will require the user to link -lregex
- The symbols will be missing from libc, which will be a big surprise
down the line (especially with shared libs).
Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
2020-04-26 15:45:10 +03:00
|
|
|
add_subdirectory(LibCompress)
|
2021-08-25 20:35:19 +03:00
|
|
|
add_subdirectory(LibConfig)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibCore)
|
2021-08-22 15:51:04 +03:00
|
|
|
add_subdirectory(LibCoredump)
|
LibRegex: Add a regular expression library
This commit is a mix of several commits, squashed into one because the
commits before 'Move regex to own Library and fix all the broken stuff'
were not fixable in any elegant way.
The commits are listed below for "historical" purposes:
- AK: Add options/flags and Errors for regular expressions
Flags can be provided for any possible flavour by adding a new scoped enum.
Handling of flags is done by templated Options class and the overloaded
'|' and '&' operators.
- AK: Add Lexer for regular expressions
The lexer parses the input and extracts tokens needed to parse a regular
expression.
- AK: Add regex Parser and PosixExtendedParser
This patchset adds a abstract parser class that can be derived to implement
different parsers. A parser produces bytecode to be executed within the
regex matcher.
- AK: Add regex matcher
This patchset adds an regex matcher based on the principles of the T-REX VM.
The bytecode pruduced by the respective Parser is put into the matcher and
the VM will recursively execute the bytecode according to the available OpCodes.
Possible improvement: the recursion could be replaced by multi threading capabilities.
To match a Regular expression, e.g. for the Posix standard regular expression matcher
use the following API:
```
Pattern<PosixExtendedParser> pattern("^.*$");
auto result = pattern.match("Well, hello friends!\nHello World!"); // Match whole needle
EXPECT(result.count == 1);
EXPECT(result.matches.at(0).view.starts_with("Well"));
EXPECT(result.matches.at(0).view.end() == "!");
result = pattern.match("Well, hello friends!\nHello World!", PosixFlags::Multiline); // Match line by line
EXPECT(result.count == 2);
EXPECT(result.matches.at(0).view == "Well, hello friends!");
EXPECT(result.matches.at(1).view == "Hello World!");
EXPECT(pattern.has_match("Well,....")); // Just check if match without a result, which saves some resources.
```
- AK: Rework regex to work with opcodes objects
This patchsets reworks the matcher to work on a more structured base.
For that an abstract OpCode class and derived classes for the specific
OpCodes have been added. The respective opcode logic is contained in
each respective execute() method.
- AK: Add benchmark for regex
- AK: Some optimization in regex for runtime and memory
- LibRegex: Move regex to own Library and fix all the broken stuff
Now regex works again and grep utility is also in place for testing.
This commit also fixes the use of regex.h in C by making `regex_t`
an opaque (-ish) type, which makes its behaviour consistent between
C and C++ compilers.
Previously, <regex.h> would've blown C compilers up, and even if it
didn't, would've caused a leak in C code, and not in C++ code (due to
the existence of `OwnPtr` inside the struct).
To make this whole ordeal easier to deal with (for now), this pulls the
definitions of `reg*()` into LibRegex.
pros:
- The circular dependency between LibC and LibRegex is broken
- Eaiser to test (without accidentally pulling in the host's libc!)
cons:
- Using any of the regex.h functions will require the user to link -lregex
- The symbols will be missing from libc, which will be a big surprise
down the line (especially with shared libs).
Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
2020-04-26 15:45:10 +03:00
|
|
|
add_subdirectory(LibCpp)
|
2020-07-25 06:08:48 +03:00
|
|
|
add_subdirectory(LibCrypt)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibCrypto)
|
|
|
|
add_subdirectory(LibDebug)
|
|
|
|
add_subdirectory(LibDesktop)
|
2021-10-18 04:09:18 +03:00
|
|
|
add_subdirectory(LibDeviceTree)
|
LibRegex: Add a regular expression library
This commit is a mix of several commits, squashed into one because the
commits before 'Move regex to own Library and fix all the broken stuff'
were not fixable in any elegant way.
The commits are listed below for "historical" purposes:
- AK: Add options/flags and Errors for regular expressions
Flags can be provided for any possible flavour by adding a new scoped enum.
Handling of flags is done by templated Options class and the overloaded
'|' and '&' operators.
- AK: Add Lexer for regular expressions
The lexer parses the input and extracts tokens needed to parse a regular
expression.
- AK: Add regex Parser and PosixExtendedParser
This patchset adds a abstract parser class that can be derived to implement
different parsers. A parser produces bytecode to be executed within the
regex matcher.
- AK: Add regex matcher
This patchset adds an regex matcher based on the principles of the T-REX VM.
The bytecode pruduced by the respective Parser is put into the matcher and
the VM will recursively execute the bytecode according to the available OpCodes.
Possible improvement: the recursion could be replaced by multi threading capabilities.
To match a Regular expression, e.g. for the Posix standard regular expression matcher
use the following API:
```
Pattern<PosixExtendedParser> pattern("^.*$");
auto result = pattern.match("Well, hello friends!\nHello World!"); // Match whole needle
EXPECT(result.count == 1);
EXPECT(result.matches.at(0).view.starts_with("Well"));
EXPECT(result.matches.at(0).view.end() == "!");
result = pattern.match("Well, hello friends!\nHello World!", PosixFlags::Multiline); // Match line by line
EXPECT(result.count == 2);
EXPECT(result.matches.at(0).view == "Well, hello friends!");
EXPECT(result.matches.at(1).view == "Hello World!");
EXPECT(pattern.has_match("Well,....")); // Just check if match without a result, which saves some resources.
```
- AK: Rework regex to work with opcodes objects
This patchsets reworks the matcher to work on a more structured base.
For that an abstract OpCode class and derived classes for the specific
OpCodes have been added. The respective opcode logic is contained in
each respective execute() method.
- AK: Add benchmark for regex
- AK: Some optimization in regex for runtime and memory
- LibRegex: Move regex to own Library and fix all the broken stuff
Now regex works again and grep utility is also in place for testing.
This commit also fixes the use of regex.h in C by making `regex_t`
an opaque (-ish) type, which makes its behaviour consistent between
C and C++ compilers.
Previously, <regex.h> would've blown C compilers up, and even if it
didn't, would've caused a leak in C code, and not in C++ code (due to
the existence of `OwnPtr` inside the struct).
To make this whole ordeal easier to deal with (for now), this pulls the
definitions of `reg*()` into LibRegex.
pros:
- The circular dependency between LibC and LibRegex is broken
- Eaiser to test (without accidentally pulling in the host's libc!)
cons:
- Using any of the regex.h functions will require the user to link -lregex
- The symbols will be missing from libc, which will be a big surprise
down the line (especially with shared libs).
Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
2020-04-26 15:45:10 +03:00
|
|
|
add_subdirectory(LibDiff)
|
2022-04-13 08:25:07 +03:00
|
|
|
add_subdirectory(LibDNS)
|
2021-08-27 17:18:11 +03:00
|
|
|
add_subdirectory(LibDSP)
|
2021-12-27 08:19:55 +03:00
|
|
|
add_subdirectory(LibEDID)
|
2021-01-06 22:43:34 +03:00
|
|
|
add_subdirectory(LibELF)
|
2023-03-21 16:32:08 +03:00
|
|
|
add_subdirectory(LibFileSystem)
|
2021-07-11 18:16:26 +03:00
|
|
|
add_subdirectory(LibFileSystemAccessClient)
|
2020-05-14 11:34:18 +03:00
|
|
|
add_subdirectory(LibGemini)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibGfx)
|
2021-01-06 14:58:01 +03:00
|
|
|
add_subdirectory(LibGL)
|
2022-08-28 20:23:30 +03:00
|
|
|
add_subdirectory(LibGLSL)
|
2022-03-27 19:54:31 +03:00
|
|
|
add_subdirectory(LibGPU)
|
2020-06-06 14:26:33 +03:00
|
|
|
add_subdirectory(LibGUI)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibHTTP)
|
2022-08-22 16:50:06 +03:00
|
|
|
add_subdirectory(LibIDL)
|
2021-06-01 16:21:01 +03:00
|
|
|
add_subdirectory(LibIMAP)
|
2020-06-22 22:35:22 +03:00
|
|
|
add_subdirectory(LibImageDecoderClient)
|
2020-06-06 14:26:33 +03:00
|
|
|
add_subdirectory(LibIPC)
|
2023-10-26 16:18:28 +03:00
|
|
|
add_subdirectory(LibJIT)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibJS)
|
2020-05-31 16:23:55 +03:00
|
|
|
add_subdirectory(LibKeyboard)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibLine)
|
2022-09-02 18:04:53 +03:00
|
|
|
add_subdirectory(LibLocale)
|
2021-11-22 17:44:54 +03:00
|
|
|
add_subdirectory(LibMain)
|
2022-07-13 01:20:27 +03:00
|
|
|
add_subdirectory(LibManual)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibMarkdown)
|
2022-02-12 22:21:28 +03:00
|
|
|
add_subdirectory(LibPartition)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibPCIDB)
|
2021-05-01 04:23:17 +03:00
|
|
|
add_subdirectory(LibPDF)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibProtocol)
|
LibRegex: Add a regular expression library
This commit is a mix of several commits, squashed into one because the
commits before 'Move regex to own Library and fix all the broken stuff'
were not fixable in any elegant way.
The commits are listed below for "historical" purposes:
- AK: Add options/flags and Errors for regular expressions
Flags can be provided for any possible flavour by adding a new scoped enum.
Handling of flags is done by templated Options class and the overloaded
'|' and '&' operators.
- AK: Add Lexer for regular expressions
The lexer parses the input and extracts tokens needed to parse a regular
expression.
- AK: Add regex Parser and PosixExtendedParser
This patchset adds a abstract parser class that can be derived to implement
different parsers. A parser produces bytecode to be executed within the
regex matcher.
- AK: Add regex matcher
This patchset adds an regex matcher based on the principles of the T-REX VM.
The bytecode pruduced by the respective Parser is put into the matcher and
the VM will recursively execute the bytecode according to the available OpCodes.
Possible improvement: the recursion could be replaced by multi threading capabilities.
To match a Regular expression, e.g. for the Posix standard regular expression matcher
use the following API:
```
Pattern<PosixExtendedParser> pattern("^.*$");
auto result = pattern.match("Well, hello friends!\nHello World!"); // Match whole needle
EXPECT(result.count == 1);
EXPECT(result.matches.at(0).view.starts_with("Well"));
EXPECT(result.matches.at(0).view.end() == "!");
result = pattern.match("Well, hello friends!\nHello World!", PosixFlags::Multiline); // Match line by line
EXPECT(result.count == 2);
EXPECT(result.matches.at(0).view == "Well, hello friends!");
EXPECT(result.matches.at(1).view == "Hello World!");
EXPECT(pattern.has_match("Well,....")); // Just check if match without a result, which saves some resources.
```
- AK: Rework regex to work with opcodes objects
This patchsets reworks the matcher to work on a more structured base.
For that an abstract OpCode class and derived classes for the specific
OpCodes have been added. The respective opcode logic is contained in
each respective execute() method.
- AK: Add benchmark for regex
- AK: Some optimization in regex for runtime and memory
- LibRegex: Move regex to own Library and fix all the broken stuff
Now regex works again and grep utility is also in place for testing.
This commit also fixes the use of regex.h in C by making `regex_t`
an opaque (-ish) type, which makes its behaviour consistent between
C and C++ compilers.
Previously, <regex.h> would've blown C compilers up, and even if it
didn't, would've caused a leak in C code, and not in C++ code (due to
the existence of `OwnPtr` inside the struct).
To make this whole ordeal easier to deal with (for now), this pulls the
definitions of `reg*()` into LibRegex.
pros:
- The circular dependency between LibC and LibRegex is broken
- Eaiser to test (without accidentally pulling in the host's libc!)
cons:
- Using any of the regex.h functions will require the user to link -lregex
- The symbols will be missing from libc, which will be a big surprise
down the line (especially with shared libs).
Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
2020-04-26 15:45:10 +03:00
|
|
|
add_subdirectory(LibRegex)
|
2023-10-12 16:02:39 +03:00
|
|
|
add_subdirectory(LibRIFF)
|
2021-05-24 04:40:22 +03:00
|
|
|
add_subdirectory(LibSanitizer)
|
2023-12-21 13:19:11 +03:00
|
|
|
add_subdirectory(LibSemVer)
|
2021-12-16 22:32:38 +03:00
|
|
|
add_subdirectory(LibSoftGPU)
|
2021-04-19 00:35:40 +03:00
|
|
|
add_subdirectory(LibSQL)
|
2021-05-22 18:15:18 +03:00
|
|
|
add_subdirectory(LibSymbolication)
|
2021-02-07 17:15:10 +03:00
|
|
|
add_subdirectory(LibSyntax)
|
2021-02-05 14:16:30 +03:00
|
|
|
add_subdirectory(LibSystem)
|
2021-03-01 00:09:13 +03:00
|
|
|
add_subdirectory(LibTest)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibTextCodec)
|
2021-05-22 19:47:42 +03:00
|
|
|
add_subdirectory(LibThreading)
|
2021-12-23 00:33:38 +03:00
|
|
|
add_subdirectory(LibTimeZone)
|
2020-06-06 14:26:33 +03:00
|
|
|
add_subdirectory(LibTLS)
|
2021-07-25 22:10:51 +03:00
|
|
|
add_subdirectory(LibUnicode)
|
2024-03-18 06:22:27 +03:00
|
|
|
add_subdirectory(LibURL)
|
2021-06-09 17:24:04 +03:00
|
|
|
add_subdirectory(LibUSBDB)
|
2021-06-05 23:06:55 +03:00
|
|
|
add_subdirectory(LibVideo)
|
2022-12-19 17:24:07 +03:00
|
|
|
add_subdirectory(LibVirtGPU)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibVT)
|
2021-04-26 11:18:13 +03:00
|
|
|
add_subdirectory(LibWasm)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibWeb)
|
2021-04-17 18:20:24 +03:00
|
|
|
add_subdirectory(LibWebSocket)
|
2022-04-30 11:46:33 +03:00
|
|
|
add_subdirectory(LibWebView)
|
2020-05-06 18:40:06 +03:00
|
|
|
add_subdirectory(LibX86)
|
2022-03-26 20:02:57 +03:00
|
|
|
add_subdirectory(LibXML)
|