<commit_before>parser grammar CiscoNxosParser;

import
CiscoNxos_common, CiscoNxos_bgp, CiscoNxos_evpn, CiscoNxos_interface, CiscoNxos_ip_access_list, CiscoNxos_ip_as_path_access_list, CiscoNxos_ip_community_list, CiscoNxos_ip_prefix_list, CiscoNxos_ipv6_access_list, CiscoNxos_ospf, CiscoNxos_route_map, CiscoNxos_static, CiscoNxos_vlan, CiscoNxos_vrf;

options {
  superClass = 'org.batfish.grammar.cisco_nxos.parsing.CiscoNxosBaseParser';
  tokenVocab = CiscoNxosLexer;
}

cisco_nxos_configuration
:
  statement+ EOF
;

statement
:
  s_banner
  | s_evpn
  | s_hostname
  | s_interface
  | s_ip
  | s_ipv6
  | s_no
  | s_null
  | s_nv
  | s_route_map
  | s_router<commit_msg>Cisco NX-OS format parser imports (#4348)<commit_after>parser grammar CiscoNxosParser;

import
  CiscoNxos_common,
  CiscoNxos_bgp,
  CiscoNxos_evpn,
  CiscoNxos_interface,
  CiscoNxos_ip_access_list,
  CiscoNxos_ip_as_path_access_list,
  CiscoNxos_ip_community_list,
  CiscoNxos_ip_prefix_list,
  CiscoNxos_ipv6_access_list,
  CiscoNxos_ospf,
  CiscoNxos_route_map,
  CiscoNxos_static,
  CiscoNxos_vlan,
  CiscoNxos_vrf;

options {
  superClass = 'org.batfish.grammar.cisco_nxos.parsing.CiscoNxosBaseParser';
  tokenVocab = CiscoNxosLexer;
}

cisco_nxos_configuration
:
  statement+ EOF
;

statement
:
  s_banner
  | s_evpn
  | s_hostname
  | s_interface
  | s_ip
  | s_ipv6
  | s_no
  | s_null
  | s_nv
  | s_route_map
  | s_router
{'fraction_non_alphanumeric': 0.06666666666666667, 'fraction_numerical': 0.005673758865248227, 'mean_word_length': 5.502304147465438, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7593526', 'n_tokens_mistral': 671, 'n_tokens_neox': 649, 'n_words': 80}