Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual parser #38

Merged
merged 25 commits into from
Mar 4, 2024
Merged
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
646e0fa
start work on the manual parser
tertsdiepraam Feb 20, 2024
1afe3ca
continue work on the manual parser
tertsdiepraam Feb 21, 2024
1402404
even more parser stuff
tertsdiepraam Feb 22, 2024
8559057
restructure parser
tertsdiepraam Feb 26, 2024
fcdf435
more parser work
tertsdiepraam Feb 27, 2024
2cad1d6
more parser work
tertsdiepraam Feb 28, 2024
db48792
add parser comparison for debugging
tertsdiepraam Feb 28, 2024
9634f09
flip meaning of negate and restrict AS to decimal in nom parser
tertsdiepraam Feb 28, 2024
969273c
restrict AS to decimal in new parser
tertsdiepraam Feb 28, 2024
c4ddfa0
parser seems to be passing all the tests!
tertsdiepraam Feb 28, 2024
02fd225
remove old parser and port the last tests
tertsdiepraam Feb 29, 2024
7812aa4
remove the temporary main.rs
tertsdiepraam Feb 29, 2024
d79c40d
fixup! remove old parser and port the last tests
tertsdiepraam Feb 29, 2024
b900c63
restructure parser files
tertsdiepraam Feb 29, 2024
f225133
rename functions to be more consistent
tertsdiepraam Feb 29, 2024
f3860c4
rename basic parser methods
tertsdiepraam Feb 29, 2024
1dac4c4
replace ParseError::Todo with reasonable error messages
tertsdiepraam Feb 29, 2024
9a79653
change unwraps to proper ParseError
tertsdiepraam Feb 29, 2024
a0d5b50
clean up apply scope parsing
tertsdiepraam Feb 29, 2024
f4ca36b
parser: clean up docstrings
tertsdiepraam Mar 1, 2024
866a566
move token module to parser module
tertsdiepraam Mar 1, 2024
b41c8d3
cargo clippy
tertsdiepraam Mar 1, 2024
35ce27b
refactor route.rs
tertsdiepraam Mar 1, 2024
b7d593c
remove and refactor methods on Rotolo
tertsdiepraam Feb 26, 2024
ea4be63
Merge branch 'main' into manual-parser
tertsdiepraam Mar 4, 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
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ log = "0.4"

arc-swap = "^1.6"
bytes = { version = "1", features = [ "serde" ] }
logos = "0.14.0"
nom = "7.1"
paste = "1.0.14"
smallvec = { version = "1.11", features = [ "const_generics", "serde" ] }
serde = { version = "1.0", features = [ "derive", "rc" ] }
routecore = { version = "0.4.0", features = ["bgp", "bmp", "serde"] }
rotonda-store = { version = "0.3.0" }
miette = { version = "7.1.0", features = ["fancy"] }

[dev-dependencies]
env_logger = "0.10"
Expand Down
5 changes: 5 additions & 0 deletions examples/rib.roto
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// one comment
rib unrib contains Blaffer {
// another comment
blaffer: Blaf,
}
Loading
Loading