-
Notifications
You must be signed in to change notification settings - Fork 229
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
Parse eigrp stub #6275
Parse eigrp stub #6275
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6275 +/- ##
============================================
- Coverage 72.92% 72.90% -0.02%
+ Complexity 35028 35021 -7
============================================
Files 2832 2832
Lines 142317 142326 +9
Branches 17090 17090
============================================
- Hits 103782 103763 -19
- Misses 30311 30330 +19
- Partials 8224 8233 +9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 7 of 7 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @arifogel and @ratulm)
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco/Cisco_eigrp.g4, line 175 at r1 (raw file):
; re_eigrp_stub
not a blocker, but better to write like an LL1 parser:
- create
re_eigrp
- (really opt: move re_rigrp_null inside of it, dropping the
no?
) - create
re_eigrp_stub
(orree_stub
?) - create
rees_null
andrees_leak_map
and only do the leak_map handling inside of leak_map.
This both makes the parser more efficient, the grammar easier to read, and the extraction code simpler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 5 of 8 files reviewed, all discussions resolved (waiting on @arifogel and @dhalperi)
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco/Cisco_eigrp.g4, line 175 at r1 (raw file):
Previously, dhalperi (Dan Halperin) wrote…
not a blocker, but better to write like an LL1 parser:
- create
re_eigrp
- (really opt: move re_rigrp_null inside of it, dropping the
no?
)- create
re_eigrp_stub
(orree_stub
?)- create
rees_null
andrees_leak_map
and only do the leak_map handling inside of leak_map.
This both makes the parser more efficient, the grammar easier to read, and the extraction code simpler
done. left re_eigrp_router_id alone as its leading 'no' is being processed in the extractor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r2.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @arifogel)
Fixes #6236