Skip to content
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
339 commits
Select commit Hold shift + click to select a range
f95f6ee
More fixes towards it working, need to do the final copy operations.
SharafMohamed Mar 5, 2025
3b1dafc
Remove UTF-8 case as its handled incorrectly.
SharafMohamed Mar 5, 2025
250f173
Update the way registers work; Fix simulation.
SharafMohamed Mar 6, 2025
db7bc11
Update reg handler test case.
SharafMohamed Mar 6, 2025
0b397e2
Explicit specialization of byte case.
SharafMohamed Mar 6, 2025
6716473
Figured out why repetition is failing to tag correctly.
SharafMohamed Mar 8, 2025
11cb2a7
Switch to unordered map.
SharafMohamed Mar 10, 2025
3e3d27a
Add test case for CLP schema.
SharafMohamed Mar 10, 2025
3638985
Merge branch 'add-register-operations' into determinization
SharafMohamed Mar 10, 2025
348a634
Update to handle merge.
SharafMohamed Mar 10, 2025
14aac7f
Merge branch 'main' into determinization
SharafMohamed Mar 10, 2025
f5bcce8
Rename determization to determinization.
SharafMohamed Mar 10, 2025
3c8c208
Run linter.
SharafMohamed Mar 10, 2025
be19363
Add unit-test for integer NFA. Currently, fails.
SharafMohamed Mar 12, 2025
dfc66de
Fix bug for 0 repetition case.
SharafMohamed Mar 13, 2025
ce88dc1
Fix logical error in if check for config mapping during determinizati…
SharafMohamed Mar 13, 2025
adefd0b
Add test case for ambiguous lexing rules; Disambiguate lexing rules i…
SharafMohamed Mar 14, 2025
b42fae9
Fix repeated reg ops for same register.
SharafMohamed Mar 16, 2025
7067112
Add return type of set_reg_id.
SharafMohamed Mar 28, 2025
1429996
Add helper function to reduce repetitive code in DFA unit tests.
SharafMohamed Mar 28, 2025
c7b8baf
Merge branch 'main' into determinization
SharafMohamed Mar 28, 2025
282b552
Add TODO.
SharafMohamed Mar 28, 2025
5e06805
Remove usage of [] for files in this PR; Add [[nodiscard]] for files …
SharafMohamed Mar 28, 2025
97c1088
Linter.
SharafMohamed Mar 28, 2025
5eba1f3
Fix docstring.
SharafMohamed Mar 28, 2025
16fd3a5
Merge branch 'main' into determinization
SharafMohamed Mar 28, 2025
34e70b8
Improve docstrings in Lexer.hpp; Update variable name for specificity…
SharafMohamed Mar 29, 2025
81e46db
Add Lexer docstring.
SharafMohamed Mar 29, 2025
9937d44
Update NfaState docstrings.
SharafMohamed Mar 29, 2025
db2951b
Improve docstrings in Dfa.hpp.
SharafMohamed Mar 29, 2025
7d13265
Update docstrings in DeterminizationConfiguration; Also, move update_…
SharafMohamed Mar 29, 2025
1b4c21b
Lint.
SharafMohamed Mar 29, 2025
836f587
Merge branch 'determinization' into scan-pair
SharafMohamed Mar 29, 2025
240a379
Remove leftover HEAD from previous commit.
SharafMohamed Mar 29, 2025
58b7a98
Merge branch 'scan-pair' into simulation
SharafMohamed Mar 29, 2025
5c86d3a
Fix bugs from CLP.
SharafMohamed Mar 29, 2025
928589c
Add back CODEOWNERS.
SharafMohamed Mar 31, 2025
c7cd662
Set up NFA to handle single-valued tags.
SharafMohamed Apr 2, 2025
c7523e8
Merge branch 'main' into single-valued-nfa
SharafMohamed Apr 2, 2025
a1548c4
Merge branch 'main' into single-valued-nfa
SharafMohamed Apr 7, 2025
653f997
Change add_delimiters to set_delimiters; Update docstring.
SharafMohamed Apr 9, 2025
4b8d0b9
Move TODO to git issue.
SharafMohamed Apr 9, 2025
66e02d2
Remove accidental q character.
SharafMohamed Apr 9, 2025
1225886
Forward multi_valued argument to tag creation functions.
SharafMohamed Apr 9, 2025
247d6b6
Finish forwarding descendaent_of_repetition to tag creation functions…
SharafMohamed Apr 9, 2025
61bc7ef
Add unit-test for multi-valued tag; Finish handling multi-valued tags…
SharafMohamed Apr 9, 2025
212cd5a
Add another unit-test for capture repetition regex.
SharafMohamed Apr 9, 2025
447491f
Update yscope-dev-utils.
SharafMohamed Apr 14, 2025
aa6e3e6
Revert yscope-dev-utils to mains commit.
SharafMohamed Apr 14, 2025
d400ad3
Update lexer docstring.
SharafMohamed Apr 21, 2025
b341266
Update add_rule docstring.
SharafMohamed Apr 21, 2025
2551bba
Update lexer docstring.
SharafMohamed Apr 21, 2025
3ca636d
Switched to tag_id_to_X_reg_id.
SharafMohamed Apr 21, 2025
457773c
Update initialize_register docstring.
SharafMohamed Apr 21, 2025
1600097
Update src/log_surgeon/finite_automata/DeterminizationConfiguration.hpp
SharafMohamed Apr 21, 2025
b94b6db
Update src/log_surgeon/finite_automata/Dfa.hpp
SharafMohamed Apr 21, 2025
643fa29
Update src/log_surgeon/Lexer.hpp
SharafMohamed Apr 21, 2025
5532506
Update m_tag_id_to_final_reg_id everywhere.
SharafMohamed Apr 21, 2025
d20afc6
Update src/log_surgeon/finite_automata/DeterminizationConfiguration.hpp
SharafMohamed Apr 21, 2025
f9c9443
Improve DeterminizationConfiguration docstring.
SharafMohamed Apr 22, 2025
78f2ce7
Add docstring for functions in DeterminizationConfiguration.
SharafMohamed Apr 22, 2025
4daa7be
Rename get_rule to get_highest_priority_rule.
SharafMohamed Apr 22, 2025
d5fdd43
Avoid duplicating tag to reg map.
SharafMohamed Apr 22, 2025
558056e
Improve DFA docstring.
SharafMohamed Apr 23, 2025
c2fae19
Merge branch 'determinization' into scan-pair
SharafMohamed Apr 28, 2025
4ebc72b
Merge branch 'single-valued-nfa' into scan-pair
SharafMohamed Apr 28, 2025
8431510
Remove unused param from docstring.
SharafMohamed Apr 28, 2025
f3413f2
Merge branch 'main' into scan-pair
SharafMohamed Apr 28, 2025
726e9b5
Merge branch 'main' into scan-pair
SharafMohamed May 1, 2025
c261077
Merge branch 'scan-pair' into simulation
SharafMohamed May 1, 2025
674b7ba
Merge branch 'main' into simulation
SharafMohamed May 11, 2025
12e1908
Clean up DFA tests.
SharafMohamed May 12, 2025
d9d6e71
Fix docstring.
SharafMohamed May 12, 2025
d8ac124
Use LogParser instead of creating a lexer that behaves exactly like L…
SharafMohamed May 12, 2025
a7757ab
Move regex AST tests into test-regex-ast.
SharafMohamed May 13, 2025
b593717
Copied future test cases.
SharafMohamed May 13, 2025
612a7a3
Rename test-lexer to test-parser.
SharafMohamed May 13, 2025
10a7ec0
Remove failing tests.
SharafMohamed May 13, 2025
5aa1a06
Fix backtracking.
SharafMohamed May 13, 2025
5e958d0
Remove integer test.
SharafMohamed May 13, 2025
0cc35b6
Remove doxygen stuff.
SharafMohamed May 13, 2025
728310d
Merge branch 'simulation' into backtrack
SharafMohamed May 13, 2025
9caa3c5
Fix integer bug.
SharafMohamed May 13, 2025
3bfca1a
Rename test.
SharafMohamed May 13, 2025
bfae2c1
Merge branch 'simulation' into backtrack
SharafMohamed May 13, 2025
d51945b
Merge branch 'backtrack' into integer-bugfix
SharafMohamed May 13, 2025
275d6d3
Add schema test.
SharafMohamed May 13, 2025
e95cb97
Merge branch 'simulation' into backtrack
SharafMohamed May 13, 2025
65bda1c
Retag to LogParser.
SharafMohamed May 13, 2025
19ab8e8
Merge branch 'backtrack' into integer-bugfix
SharafMohamed May 13, 2025
9183017
Add missing files.
SharafMohamed May 14, 2025
69db303
Update doxygen files.
SharafMohamed May 21, 2025
ab4c6e5
Update doxygen files.
SharafMohamed May 21, 2025
b2e6fa1
Update doxygen files again again.
SharafMohamed May 21, 2025
540ea9b
Edit mainpage
SharafMohamed May 21, 2025
c0ce8ef
Seperate changes for PR.
SharafMohamed May 31, 2025
5e2cc00
Remove unneeded changes.
SharafMohamed May 31, 2025
1652c68
Remove unneeded changes.
SharafMohamed May 31, 2025
81f096a
Remove TODO.
SharafMohamed Jun 2, 2025
c9aa27a
Fix typo.
SharafMohamed Jun 2, 2025
f90a3a1
Correct function name.
SharafMohamed Jun 2, 2025
77cf7b2
Lint.
SharafMohamed Jun 2, 2025
dccf59f
Update tests.
SharafMohamed Jun 2, 2025
407ac20
Add tagged simulation.
SharafMohamed Jun 2, 2025
02ae78e
Update error handling for add_variable and add_delimiters; Add unit-t…
SharafMohamed Jun 4, 2025
4a8204e
Add inverse_priority bounds checking; Add more tests for bounds check…
SharafMohamed Jun 4, 2025
6f08e99
Merge branch 'simulation' into backtrack
SharafMohamed Jun 4, 2025
2933ce8
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 4, 2025
ffc5d74
Update docstring in src/log_surgeon/Token.hpp.
SharafMohamed Jun 4, 2025
07cbe26
Rename add_context_to_logtype to append_context_to_logtype.
SharafMohamed Jun 4, 2025
b4f569b
Update test to be used in buffer-parser instead of log-parser (soon t…
SharafMohamed Jun 4, 2025
4ffe762
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 4, 2025
e148f04
Docstring update 1.
SharafMohamed Jun 5, 2025
5a74322
Update docstring for buffer parser without capture groups test.
SharafMohamed Jun 5, 2025
7540c1b
Add docstring for all buffer parser test cases.
SharafMohamed Jun 5, 2025
77c2a48
Add buffer parser test to cmake.
SharafMohamed Jun 5, 2025
5663058
Merge branch 'simulation-support-captures' of https://github.com/Shar…
SharafMohamed Jun 5, 2025
2e301a5
Compilation fix for previous function name change.
SharafMohamed Jun 5, 2025
9a047e9
Lint.
SharafMohamed Jun 5, 2025
ab06f0c
Merge branch 'simulation-support-captures' into simulation-buffer-tests
SharafMohamed Jun 5, 2025
97652e4
Merge branch 'simulation-buffer-tests' into simulation
SharafMohamed Jun 5, 2025
a17e041
Remove conflict marker.
SharafMohamed Jun 5, 2025
0b997f9
Merge branch 'simulation' into backtrack
SharafMohamed Jun 5, 2025
2a65fb2
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 5, 2025
fda91ec
Move test into correct file.
SharafMohamed Jun 5, 2025
1574882
Add docstring for new test cases in buffer parser.
SharafMohamed Jun 5, 2025
0ddb732
Merge branch 'simulation' into backtrack
SharafMohamed Jun 5, 2025
20ba064
Fix test name and tag.
SharafMohamed Jun 5, 2025
3bc5313
Add docstring for new test case.
SharafMohamed Jun 5, 2025
e77cb93
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 5, 2025
9814550
Add last docstring for buffer tests.
SharafMohamed Jun 5, 2025
396a549
Delete new unit tests.
SharafMohamed Jun 5, 2025
b34399c
Improve naming consitency in test-buffer-parser.cpp.
SharafMohamed Jun 5, 2025
559b337
Merge branch 'simulation-support-captures' into simulation-buffer-tests
SharafMohamed Jun 5, 2025
aecd1a6
Merge branch 'simulation-buffer-tests' into simulation
SharafMohamed Jun 5, 2025
7fae265
Improve naming consitency in test-buffer-parser.cpp.
SharafMohamed Jun 5, 2025
135212f
Merge branch 'simulation' into backtrack
SharafMohamed Jun 5, 2025
fef817b
Delete duplicate unit test file.
SharafMohamed Jun 5, 2025
1b4373f
Delete duplicate unit test file.
SharafMohamed Jun 5, 2025
6254ef1
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 5, 2025
bd9a1d3
Moved TODO to git issue.
SharafMohamed Jun 5, 2025
7a6c9e5
Merge branch 'simulation-support-captures' into simulation-buffer-tests
SharafMohamed Jun 5, 2025
4ecafda
Merge branch 'simulation-buffer-tests' into simulation
SharafMohamed Jun 5, 2025
e0e0821
Lint.
SharafMohamed Jun 5, 2025
8673fe8
Merge remote-tracking branch 'upstream/main' into pr-117
davidlion Jun 9, 2025
b7430ae
Apply updated clang-format changes.
davidlion Jun 9, 2025
af06e46
Merge branch 'simulation-buffer-tests' into simulation
SharafMohamed Jun 11, 2025
d7ae722
Merge branch 'simulation' into backtrack
SharafMohamed Jun 11, 2025
5871fcc
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 11, 2025
bf6eb63
Update tests/test-buffer-parser.cpp
SharafMohamed Jun 16, 2025
15c60a7
Remove repeated U for raw strings. Delete unused test file.
SharafMohamed Jun 16, 2025
bdf3928
Remove TODOs moved to issue.
SharafMohamed Jun 16, 2025
dac9b0c
Merge branch 'simulation-buffer-tests' into simulation
SharafMohamed Jun 16, 2025
2aee692
Update name of new tests cases.
SharafMohamed Jun 16, 2025
94014a8
Merge branch 'simulation-buffer-tests' into simulation
SharafMohamed Jun 16, 2025
b3310cd
Run linter.
SharafMohamed Jun 16, 2025
4c23525
Merge branch 'simulation' into backtrack
SharafMohamed Jun 16, 2025
36fb7c2
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 16, 2025
022b6d0
Move TODOs into git issues.
SharafMohamed Jun 17, 2025
157591f
Update test case names.
SharafMohamed Jun 17, 2025
ba0c78f
Remove return type from process_char.
SharafMohamed Jun 17, 2025
ea14ae6
Merge branch 'simulation' into backtrack
SharafMohamed Jun 17, 2025
49a5c10
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 17, 2025
b290d94
Fix test case names in schema tests.
SharafMohamed Jun 17, 2025
da74d6c
Merge branch 'simulation-buffer-tests' into simulation
SharafMohamed Jun 17, 2025
f1e0704
Merge branch 'simulation' into backtrack
SharafMohamed Jun 17, 2025
31cd2db
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 17, 2025
fa53a0c
Update tests/test-schema.cpp
SharafMohamed Jun 17, 2025
5c3df7c
Update tests/test-schema.cpp
SharafMohamed Jun 17, 2025
3b3f226
Update test-buffer-parser test names.
SharafMohamed Jun 17, 2025
7b9af31
Merge branch 'simulation-buffer-tests' into simulation
SharafMohamed Jun 17, 2025
e239c90
Merge branch 'simulation' into backtrack
SharafMohamed Jun 17, 2025
abb5150
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 17, 2025
251c474
Merge branch 'main' into simulation
SharafMohamed Jun 17, 2025
54c6bc6
Update unit-test names.
SharafMohamed Jun 17, 2025
b99d5e6
Update src/log_surgeon/finite_automata/Dfa.hpp
SharafMohamed Jun 18, 2025
fd8443e
Update src/log_surgeon/finite_automata/Dfa.hpp
SharafMohamed Jun 18, 2025
83993ea
Update tests/test-buffer-parser.cpp
SharafMohamed Jun 18, 2025
38be2bc
Remove doxygen files.
SharafMohamed Jun 18, 2025
74ff1c6
Rename set to set_curr_state.
SharafMohamed Jun 18, 2025
0253e31
Lint.
SharafMohamed Jun 18, 2025
f047b65
Use process_state (renamed to process_reg_ops) in process_char.
SharafMohamed Jun 18, 2025
35e30bb
Propogate previous commit changes
SharafMohamed Jun 18, 2025
14782af
Update release_reg_handler.
SharafMohamed Jun 18, 2025
eca733b
Update docstring.
SharafMohamed Jun 18, 2025
839a621
Consolidate state information b/w Dfa and Lexer into Lexer.
SharafMohamed Jun 18, 2025
7736f80
Remove TODO.
SharafMohamed Jun 18, 2025
0dfaed9
Update docstrings; Remove process_char from Dfa header.
SharafMohamed Jun 18, 2025
e4e3747
Merge branch 'simulation' into backtrack
SharafMohamed Jun 18, 2025
4a8aa6e
Merge branch 'main' into backtrack
SharafMohamed Jun 18, 2025
ce3aa99
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 18, 2025
1a8a4c4
Add docs back in.
SharafMohamed Jun 18, 2025
575acd5
Remove TODO.
SharafMohamed Jun 19, 2025
d42baeb
Remove optional from member var name.
SharafMohamed Jun 19, 2025
0893ac1
Fix delimiter docstring.
SharafMohamed Jun 19, 2025
2290494
Update test name.
SharafMohamed Jun 19, 2025
d6e7a18
Merge branch 'backtrack' into integer-bugfix
SharafMohamed Jun 19, 2025
56a6ae7
Update test name.
SharafMohamed Jun 19, 2025
1eebf2f
Remove redundant lint; Remove TODO.
SharafMohamed Jun 19, 2025
84dd2c7
Merge branch 'main' into integer-bugfix
SharafMohamed Jun 19, 2025
5995eff
Merge branch 'integer-bugfix' into doxygen
SharafMohamed Jun 19, 2025
c1f9981
Update tests/test-buffer-parser.cpp
SharafMohamed Jun 20, 2025
c42340d
Merge branch 'integer-bugfix' into doxygen
SharafMohamed Jun 20, 2025
abaee83
change log_parser to buffer_parser in docs to make sure everything is…
SharafMohamed Jun 20, 2025
e2b3f5f
Update README.
SharafMohamed Jun 20, 2025
ac3fbd0
Remove the feature to toggle dark mode since its not really working.
SharafMohamed Jun 23, 2025
8df95de
Remove ) typo.
SharafMohamed Jun 23, 2025
059a1c9
Add doxygen.yaml to workflows and taskfiles.
SharafMohamed Jun 24, 2025
61f54ec
Remove : from utils to run relative checksum; Add reference to utils;…
SharafMohamed Jun 25, 2025
cf38854
Merge branch 'main' into doxygen
SharafMohamed Jun 25, 2025
ccfa116
Merge branch 'doxygen-taskfile' into doxygen
SharafMohamed Jun 25, 2025
d37dd53
Run doxygen from the correct directory; Update output directory to be…
SharafMohamed Jun 25, 2025
630c2d0
Lint yaml.
SharafMohamed Jun 25, 2025
e973162
Use checkout and artifact v4 instead of v3.
SharafMohamed Jun 25, 2025
c0a3d56
Merge branch 'main' into doxygen
SharafMohamed Jun 25, 2025
31a24d3
Install doxygen in workflow.
SharafMohamed Jun 25, 2025
b8c1162
Update README.
SharafMohamed Jun 25, 2025
a277a1f
Rename tasks and add doxygen dependency to taskfile.
davidlion Jun 25, 2025
24e93d6
Merge commit 'refs/pull/133/head' of https://github.com/y-scope/log-s…
davidlion Jun 25, 2025
c683921
Update tasks in readme.
davidlion Jun 25, 2025
876e326
README update.
davidlion Jun 25, 2025
e682ebd
Fix typos.
davidlion Jun 26, 2025
a9f2bc9
Minimize Doxyfile entries by removing defaults.
davidlion Jun 26, 2025
7308c6b
Switch to markdown headers; Make test cases valid c++ names.
davidlion Jun 26, 2025
955b159
Refactor test names.
davidlion Jul 2, 2025
a6c1890
Address offline discussion comments.
davidlion Jul 8, 2025
dd0fa3d
Added missing defgroups back.
davidlion Jul 8, 2025
4902fb8
Reflow text.
davidlion Jul 8, 2025
d6b59e4
Attempt at renaming unit tests to be more consistent.
davidlion Jul 8, 2025
bee0794
More test naming tweaks.
davidlion Jul 8, 2025
bd4328a
Pluralize capture groups in multi_valued_capture_1 test as there are …
SharafMohamed Jul 8, 2025
157f5f1
Update tests/test-schema.cpp
SharafMohamed Jul 9, 2025
4fb1f61
Switch doxyfile comments to sentence case.
SharafMohamed Jul 9, 2025
d9e6be3
Update docs/doxygen/Doxyfile
SharafMohamed Jul 9, 2025
820b5fe
Update docs/doxygen/mainpage.dox
SharafMohamed Jul 9, 2025
a941361
Update taskfiles/docs.yaml
SharafMohamed Jul 9, 2025
0d20c9b
Update taskfiles/docs.yaml
SharafMohamed Jul 9, 2025
419f50f
Update taskfiles/docs.yaml
SharafMohamed Jul 9, 2025
1d611c4
Switch -c -1 back to -c-1
SharafMohamed Jul 9, 2025
a92f252
Update README.md
SharafMohamed Jul 9, 2025
a4ba9d1
Update README.md
SharafMohamed Jul 9, 2025
a064150
Update README.md
SharafMohamed Jul 11, 2025
d223cd1
Add run once to http-server.
SharafMohamed Jul 11, 2025
b556496
Deduplicate doxygen filename.
SharafMohamed Jul 11, 2025
e01f97a
Add quotations to task variable
SharafMohamed Jul 11, 2025
76dd1b2
alphabetize.
SharafMohamed Jul 11, 2025
cc148e8
Add docs.yaml to lint task.
SharafMohamed Jul 11, 2025
c69dd60
Switch to sentence case for defgroup; Update some documentation for c…
SharafMohamed Jul 11, 2025
5049e39
Lint.
SharafMohamed Jul 11, 2025
0894856
Pin commits.
SharafMohamed Jul 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions docs/doxygen/Doxyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
-------------------------------------------------------------
# Project Information
#-------------------------------------------------------------
PROJECT_NAME = "Log Surgeon"
PROJECT_BRIEF = "Test coverage and internal documentation"
OUTPUT_DIRECTORY = docs
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English

#-------------------------------------------------------------
# Input
#-------------------------------------------------------------
INPUT = ../../tests mainpage.dox groups.dox
RECURSIVE = YES
FILE_PATTERNS = *.cpp

#-------------------------------------------------------------
# Source Code Parsing
#-------------------------------------------------------------
EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES
EXTRACT_STATIC = YES
EXTRACT_LOCAL_CLASSES = YES
EXTRACT_ANON_NSPACES = YES

ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = NO
PREDEFINED = TEST_CASE(x,y)=void x() /**< @testcase y */

# If needed, fake out Catch2's SECTION to avoid warnings:
PREDEFINED += SECTION(x)=

#-------------------------------------------------------------
# Documentation Formatting
#-------------------------------------------------------------
TAB_SIZE = 4
OPTIMIZE_OUTPUT_FOR_C = NO
OPTIMIZE_OUTPUT_JAVA = NO
OPTIMIZE_FOR_FORTRAN = NO
OPTIMIZE_OUTPUT_VHDL = NO
EXTENSION_MAPPING = cpp=C++
HAVE_DOT = NO

#-------------------------------------------------------------
# HTML Output
#-------------------------------------------------------------
GENERATE_HTML = YES
HTML_OUTPUT = html
HTML_COLORSTYLE_HUE = 220
HTML_TIMESTAMP = YES

HTML_EXTRA_STYLESHEET = compact-dark.css
HTML_EXTRA_FILES = toggleMode.js
HTML_FOOTER = footer.html

#-------------------------------------------------------------
# LaTeX / PDF Output
#-------------------------------------------------------------
GENERATE_LATEX = NO

#-------------------------------------------------------------
# Misc
#-------------------------------------------------------------
QUIET = NO
WARNINGS = YES
WARN_IF_UNDOCUMENTED = NO
INPUT_ENCODING = UTF-8
145 changes: 145 additions & 0 deletions docs/doxygen/compact-dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
/* Global Reset */
body {
font-family: "Segoe UI", sans-serif;
font-size: 14px;
background-color: #f8f9fa; /* Default Light */
color: #212529;
margin: 0;
padding: 0;
}

/* Dark Mode */
body.dark {
background-color: #1e1e1e;
color: #e0e0e0;
}

/* Section Titles */
h1, h2, h3, h4 {
color: #0056b3;
border-bottom: 1px solid #dee2e6;
padding-bottom: 0.25rem;
margin-top: 1.5rem;
font-size: 1.25rem;
}

/* Group & List Styling */
dl, ul, ol {
margin-top: 0.75rem;
margin-bottom: 0.75rem;
padding-left: 1.5rem;
}

dt {
font-weight: bold;
margin-top: 0.75rem;
}

dd {
margin-left: 1rem;
}

/* Table Styling */
table.directory, table.memberdecls, table {
border-collapse: collapse;
width: 100%;
margin-top: 1.25rem;
}

th, td {
border: 1px solid #dee2e6;
padding: 0.5rem;
font-size: 0.875rem;
text-align: left;
}

th {
background-color: #e9ecef;
}

/* Links */
a {
color: #007bff;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

/* Code Blocks */
pre.fragment {
background-color: #f1f3f5;
border-left: 3px solid #007bff;
padding: 0.75rem;
font-family: "Courier New", monospace;
color: #212529;
margin-top: 1rem;
overflow-x: auto;
}

/* Footer */
div.footer {
background-color: #343a40;
color: #ffffff;
text-align: center;
padding: 0.75rem;
margin-top: 1.5rem;
}

/* Dark Mode Specific Styles */
body.dark .header {
background-color: #333333;
}

body.dark .header h1, body.dark .header h2 {
color: #ffffff;
}

body.dark .contents {
background-color: #252525;
color: #e0e0e0;
}

body.dark h1, body.dark h2, body.dark h3, body.dark h4 {
color: #c5c5ff;
}

body.dark dl, body.dark ul, body.dark ol {
color: #e0e0e0;
}

body.dark pre.fragment {
background-color: #252525;
border-left: 3px solid #007bff;
}

body.dark a {
color: #4db8ff;
}

/* Navigation Bar (Main Tabs) */
body.dark #top *,
body.dark .header *{
background-color: #333333; /* Dark background for navbar */
border-bottom: 1px solid #555555; /* Dark border */
}

body.dark #top * a,
body.dark .header * a {
color: #e0e0e0; /* Light color for links in navbar */
}

body.dark #main-nav a:hover {
color: #4db8ff; /* Light blue color when hovered */
}

/* Code doc */
body.dark .memitem * {
background-color: #333333; /* Dark background for navbar */
border-bottom: 1px solid #555555; /* Dark border */
}

body.dark .memitem * a {
color: #e0e0e0; /* Light color for links in navbar */
}
5 changes: 5 additions & 0 deletions docs/doxygen/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="footer">
<p>&copy; 2025 </p>
<button onclick="toggleMode()">Toggle Dark/Compact Mode</button>
</div>
<script src="toggleMode.js"></script>
54 changes: 54 additions & 0 deletions docs/doxygen/groups.dox
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/** @file groups.dox
* @brief Test group hierarchy for Doxygen documentation.
*/

/**
* @defgroup test_buffer_parser_no_capture Basic Variable Matching (No Capture Groups)
* @brief Tests covering variable matching without regex capture groups.
*/

/**
* @defgroup test_log_parser_capture Log Parser with Capture Groups
* @brief Tests LogParser behavior with named capture groups in variable schemas.
*
* @details
* Verifies:
* - Symbol registration for variables and capture groups
* - Correct association of tag positions
* - Proper assignment and lookup of tag registers
*
* Useful for validating advanced schema features like `(?<name>...)` integration.
*
* @see test_buffer_parser_no_capture for simpler variable matching.
*/

/**
* @defgroup test_log_parser_default_schema Log Parser: Default Schema
* @brief Tests for CLP's default variable schema: timestamp, int, float, hex, key-value pairs, etc.
*
* @details
* Validates token recognition across common variable types using a default schema definition.
*/

/**
* @defgroup test_log_parser_delimited_variables Log Parser: Variables with Delimiters Schema
* @brief Tests for LogParser using a schema where variables are defined with custom delimiters.
*
* @details
* This group contains tests that verify tokenization using:
* - Custom delimiters (`\n\r\[:,)`)
* - Variables that require delimiters to separate them properly in the input.
*
* These tests ensure the parser correctly handles and matches variables bounded by specified
* delimiters.
*/

/**
* @defgroup test_log_parser_newline_vars Variable Tokens on Newlines
* @brief Tests covering how LogParser categorizes variable tokens appearing at the start of new lines,
* including interaction with static-text, delimiters, and capture group repetition.
*
* These tests verify correct tokenization and recognition of variables and delimiters
* when variables occur on new lines, especially following different token types.
*/

16 changes: 16 additions & 0 deletions docs/doxygen/mainpage.dox
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/** @mainpage
* # Use case examples of schema rules and parsing results:
* - @ref test_buffer_parser_no_capture "Use basic log parser"
* - @ref test_log_parser_capture "Use captures"
* - @ref test_log_parser_default_schema "Default CLP schema"
* - @ref test_log_parser_delimited_variables "Backtracking on delimited variables"
* - @ref test_log_parser_newline_vars "Identifying variables at the start of a line"
* # Unit-tests:
* - @ref test-schema.cpp "Schema creation tests"
* - @ref test-dfa.cpp "DFA tests"
* - @ref test-nfa.cpp "NFA tests"
* - @ref test-regex-ast.cpp "Regex AST tests"
* - @ref test-register-handler.cpp "Register handler tests"
* - @ref test-prefix-tree.cpp "Prefix tree tests"
* - @ref test-capture.cpp "Capture tests"
*/
19 changes: 19 additions & 0 deletions docs/doxygen/toggleMode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
function toggleMode() {
var body = document.body;

// Toggle classes for dark and compact mode
body.classList.toggle('dark');

// Store the modes in localStorage for persistence across page reloads
localStorage.setItem('darkMode', body.classList.contains('dark'));
}

// On page load, check localStorage and apply the saved modes if any
window.onload = function() {
var body = document.body;

// Apply saved dark mode
if (localStorage.getItem('darkMode') === 'true') {
body.classList.add('dark');
}
};
6 changes: 2 additions & 4 deletions src/log_surgeon/Lexer.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,14 @@ auto Lexer<TypedNfaState, TypedDfaState>::scan(ParserInputBuffer& input_buffer)
m_line++;
// The newline character itself needs to be treated as a match for non-timestamped logs.
if (m_has_delimiters && false == m_match) {
auto const* dest_state{
m_dfa->get_root()->get_transition(next_char)->get_dest_state()
};
m_state = m_dfa->get_root();
process_char(next_char, prev_byte_buf_pos);
m_match = true;
m_type_ids = &dest_state->get_matching_variable_ids();
m_type_ids = &m_state->get_matching_variable_ids();
m_start_pos = prev_byte_buf_pos;
m_match_pos = input_buffer.storage().pos();
m_match_line = m_line;
continue;
}
}

Expand Down
Loading
Loading