Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d73f867
feat: cleanup
williamthome Apr 17, 2024
cd3d8e0
feat: create location module
williamthome Apr 17, 2024
4d584f4
feat: create binary part module
williamthome Apr 18, 2024
3e4d5c3
feat: new scan implementation
williamthome Apr 18, 2024
a854d6c
feat: simplify using just one regex
williamthome Apr 19, 2024
9fde0a5
feat: implement handle_start callback
williamthome Apr 19, 2024
abd486e
feat: implement handle_terminate callback
williamthome Apr 19, 2024
728cb7d
feat: update location after match
williamthome Apr 19, 2024
f5662e1
fix: position issues
williamthome Apr 19, 2024
97f3427
feat: small fixes
williamthome Apr 23, 2024
f10e72c
feat: html5 scanner
williamthome Apr 24, 2024
721e6d5
fix: text and position issues
williamthome Apr 24, 2024
480f571
feat(html): add possibility to override attributes engine
williamthome Apr 25, 2024
6f9f5a9
fix: failling check
williamthome Apr 25, 2024
947bdfb
refactor: cleanup
williamthome Apr 25, 2024
580b4db
fix: wrong location
williamthome Apr 26, 2024
06856e9
fix(eel): wrong regex
williamthome Apr 26, 2024
2f867aa
fix(example): wrong regex
williamthome Apr 26, 2024
4a2b7e8
refactor: organize code
williamthome Apr 26, 2024
c61e350
feat: anno module
williamthome Apr 26, 2024
df87570
feat(marker): permit regex be a string
williamthome Apr 28, 2024
fa76b33
feat(eel): change markers id and re
williamthome Apr 28, 2024
320a6e1
refactor: check is_anno using a guard
williamthome Apr 28, 2024
4f2add5
feat: token module
williamthome Apr 30, 2024
6393e8b
feat: small fixes and implement eel attribute
williamthome Apr 30, 2024
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
13 changes: 13 additions & 0 deletions include/bel_scan_eng.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
%% This header exists to be possible to do pattern
%% matching in modules that behaves as bel_scan_eng.

-record(marker, {
id :: bel_scan_mark:id(),
re :: bel_scan_mark:re()
}).

-record(engine, {
module :: module(),
markers :: [bel_scan_mark:t()],
state :: bel_scan_eng:state()
}).
5 changes: 4 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{erl_opts, [debug_info, warnings_as_errors]}.
{erl_opts, [debug_info]}.

{deps, []}.

Expand All @@ -18,6 +18,9 @@
]}.

{profiles, [
{prod, [
{erl_opts, [no_debug_info, warnings_as_errors]}
]},
{test, [
{erl_opts, [{extra_src_dirs, ["test/support"]}]}
]}
Expand Down
Loading