// ============================================================================ // FrameAssembly Lark Grammar (Outlines / vLLM / Guidance / XGrammar / llguidance) // Version: 3.3.0 — Strict-lowercase [a-z0-9]+ built-in keywords, optional // flow blocks (2-block host + compile or reusable flow templates), and all // 146 native Layer 2 through Layer 7 protocols, modifiers, and literals. // Synchronized 1:1 with src/lexer/mod.rs, grammar.ebnf, and frameassembly.gbnf. // ============================================================================ start: top_level_decl* compile_block top_level_decl* top_level_decl: host_decl | flow_decl // 1. Host Declarations (at least one ip or mac property in any order) host_decl: "host" ident_or_kw "{" host_prop+ "}" host_prop: "ip" ip_addr | "mac" MAC_ADDR // 2. Optional Flow Declarations & Statements // Minimal 2-block programs use only host + compile; flow blocks are optional. flow_decl: "flow" ident_or_kw "(" param_list? ")" "{" flow_stmt* "}" param_list: ident_or_kw ("," ident_or_kw)* flow_stmt: flow_repeat | flow_call | frame_stmt flow_repeat: "repeat" UINT_LIT "{" flow_stmt* "}" frame_stmt: ident_or_kw direction ident_or_kw frame_field* direction: "->" | "<-" // 3. Compile Block & Inline Frame Statements compile_block: "compile" "{" run_stmt* "}" run_stmt: run_repeat | flow_call | frame_stmt run_repeat: "repeat" UINT_LIT "{" run_stmt* "}" flow_call: ident_or_kw "(" param_list? ")" // 4. Frame Fields (Protocols, Modifiers & Protocol Attributes) frame_field: protocol_kw | universal_mod | l2_mod | l3_mod | l4_mod | l2_proto_field | l3_proto_field | l4_proto_field | snmp_proto_field | l7_proto_field // 5. All 146 Native Protocol Keywords protocol_kw: l2_proto | l3_proto | l4_proto | snmp_proto | l7_infra_proto | l7_app_proto | l7_ot_proto l2_proto: "arp" | "vlan" | "qinq" | "lldp" | "stp" | "lacp" | "eapol" | "mpls" | "cdp" | "ethercat" | "goose" | "isis" | "macsec" | "nsh" | "pfc" | "pppoe" | "profinet" | "sv" l3_proto: "icmp" | "ndp" | "igmp" | "mld" | "gre" | "vxlan" | "geneve" | "ipsec" | "esp" | "ah" | "ikev2" | "wireguard" | "ospf" | "bgp" | "rip" | "vrrp" | "hsrp" | "pim" | "bfd" | "openflow" | "bmp" | "erspan" | "glbp" | "gtpu" | "ipip" | "l2tp" | "ldp" | "lisp" | "rpkirtr" | "rsvp" | "srv6" l4_proto: "tcp" | "udp" | "sctp" snmp_proto: "snmp1" | "snmp2" | "snmp3" l7_infra_proto: "dns" | "mdns" | "dhcp" | "ntp" | "ptp" | "radius" | "tacacs" | "syslog" | "netflow" | "ipfix" | "sflow" | "llmnr" | "nbns" | "doh" | "diameter" | "netconf" | "twamp" | "ngap" | "s1ap" l7_app_proto: "tftp" | "ftp" | "ssh" | "telnet" | "http" | "http2" | "grpc" | "websocket" | "tls" | "quic" | "stun" | "turn" | "sip" | "rtp" | "rtcp" | "rtsp" | "smtp" | "imap" | "pop3" | "kerberos" | "ldap" | "ntlm" | "dcerpc" | "smb" | "nfs" | "iscsi" | "nvmetcp" | "redis" | "memcached" | "mysql" | "postgres" | "mssql" | "mongodb" | "tns" | "mqtt" | "coap" | "amqp" | "kafka" | "ssdp" | "wsdiscovery" | "whois" | "h323" | "mgcp" | "sccp" | "gtpc" | "pfcp" | "rocev2" | "rdp" | "vnc" | "socks" | "ipmi" | "irc" | "doip" | "someip" | "knxnetip" | "c1222" l7_ot_proto: "modbus" | "bacnet" | "dnp3" | "s7comm" | "s7commplus" | "ethernetip" | "opcua" | "iec104" | "fins" | "melsec" | "gesrtp" | "mms" | "bsap" | "hartip" | "rocplus" | "synchrophasor" // 6. Universal & Layer 2-4 Modifiers universal_mod: "wait" duration_lit | "payload" string_lit | "hexpayload" HEX_STRING_LIT | "comment" string_lit l2_mod: "srcmac" MAC_ADDR | "dstmac" MAC_ADDR | "ethertype" UINT_LIT | "vlan" UINT_LIT? | "pcp" UINT_LIT | "dei" UINT_LIT | "qinq" UINT_LIT? | "innervlan" UINT_LIT | "mpls" UINT_LIT? | "label" UINT_LIT | ("exp" | "tc") UINT_LIT | "bos" UINT_LIT | "mplsttl" UINT_LIT | "fcs" | "badfcs" l3_mod: "ttl" UINT_LIT | "dscp" UINT_LIT | "ecn" UINT_LIT | "flowlabel" UINT_LIT | "ipid" UINT_LIT | "df" | "mf" | "fragoffset" UINT_LIT | "routeralert" | "badipchecksum" | "nextheader" UINT_LIT l4_mod: "srcport" UINT_LIT | "dstport" UINT_LIT | "transport" ("tcp" | "udp" | "sctp") | "badchecksum" | "nochecksum" | tcp_flag | "seq" UINT_LIT | "acknum" UINT_LIT | ("win" | "window") UINT_LIT | "urgent" UINT_LIT | "mss" UINT_LIT | "wscale" UINT_LIT | "sackperm" | "sackblock" UINT_LIT UINT_LIT | "tsval" UINT_LIT | "tsecr" UINT_LIT | "tcpmd5" HEX_STRING_LIT | "tfo" HEX_STRING_LIT tcp_flag: "syn" | "ack" | "fin" | "rst" | "psh" | "urg" | "ece" | "cwr" // 7. Layer 2 Protocol Sub-Keywords (18 protocols) l2_proto_field: "request" | "reply" | "gratuitous" | "garp" | ("sha" | "sendermac") MAC_ADDR | ("spa" | "senderip") ip_addr | ("tha" | "targetmac") MAC_ADDR | ("tpa" | "targetip") ip_addr | "chassisid" str_or_ident | "portid" any_str | "sysname" str_or_ident | "sysdesc" str_or_ident | "rootid" any_str | "bridgeid" any_str | "cost" UINT_LIT | "maxage" UINT_LIT | "hellotime" UINT_LIT | "forwarddelay" UINT_LIT | "rstp" | "flags" UINT_LIT | "actorsys" MAC_ADDR | "actorkey" UINT_LIT | "actorport" UINT_LIT | "partnersys" MAC_ADDR | "partnerkey" UINT_LIT | "partnerport" UINT_LIT | "actorstate" UINT_LIT | "partnerstate" UINT_LIT | "version" UINT_LIT | "type" any_str | "start" | "logoff" | "key" | "eappacket" | "eapcode" UINT_LIT | "eapid" UINT_LIT | "eapmethod" UINT_LIT | "identity" str_or_ident | "deviceid" any_str | "addr" (ip_addr | UINT_LIT) | "capabilities" UINT_LIT | "swversion" any_str | "platform" any_str | "nativevlan" UINT_LIT | "cmd" any_str | "nop" | "read" | "write" | "idx" UINT_LIT | "adp" UINT_LIT | ("ado" | "offset") UINT_LIT | "irq" UINT_LIT | "wkc" UINT_LIT | "appid" UINT_LIT | "gocbref" str_or_ident | "timetolive" UINT_LIT | "datset" str_or_ident | "goid" str_or_ident | "stnum" UINT_LIT | "sqnum" UINT_LIT | "simulation" | "confrev" UINT_LIT | "ndscom" | "numdatsetentries" UINT_LIT | "svid" str_or_ident | "smpcnt" UINT_LIT | "smpsynch" UINT_LIT | "smprate" UINT_LIT | "l1iih" | "l2iih" | "p2piih" | "l1lsp" | "l2lsp" | "l1csnp" | "l2csnp" | "l1psnp" | "l2psnp" | "hello" | "sysid" any_str | "area" any_str | "holdtime" UINT_LIT | "circuittype" UINT_LIT | "priority" UINT_LIT | "lanid" any_str | "seqnum" UINT_LIT | "lifetime" UINT_LIT | "tci" UINT_LIT | "an" UINT_LIT | "sl" UINT_LIT | "pn" UINT_LIT | "sci" UINT_LIT | "icv" (HEX_STRING_LIT | UINT_LIT) | "oam" | "mdtype" UINT_LIT | "nextproto" (UINT_LIT | any_str) | "spi" UINT_LIT | "si" UINT_LIT | "context" (HEX_STRING_LIT | UINT_LIT) | "enable" UINT_LIT | "quanta" UINT_LIT | "q0" UINT_LIT | "q1" UINT_LIT | "q2" UINT_LIT | "q3" UINT_LIT | "q4" UINT_LIT | "q5" UINT_LIT | "q6" UINT_LIT | "q7" UINT_LIT | "padi" | "pado" | "padr" | "pads" | "padt" | "session" | "sessionid" UINT_LIT | "servicename" any_str | "acname" any_str | "hostuniq" (HEX_STRING_LIT | UINT_LIT) | "accookie" (HEX_STRING_LIT | UINT_LIT) | "pppproto" (UINT_LIT | any_str) | "frameid" UINT_LIT | "cycle" UINT_LIT | "datastatus" UINT_LIT | "transferstatus" UINT_LIT | "connect" | "get" | "set" | "release" | "response" | "service" any_str | "xid" UINT_LIT | "hostname" any_str // 8. Layer 3 Protocol Sub-Keywords (31 protocols) l3_proto_field: "echorequest" | "echoreply" | "destunreach" | "timeexceeded" | "redirect" UINT_LIT? | "type" (UINT_LIT | any_str) | "code" any_str | "id" UINT_LIT | "gateway" ip_addr | "routersolicit" | "routeradvert" | "neighborsolicit" | "neighboradvert" | "target" ip_addr | "slla" MAC_ADDR | "tlla" MAC_ADDR | "routerlifetime" UINT_LIT | "query" | "leave" | "done" | "v1" | "v2" | "v3" | "v4" | "v6" | "group" (ip_addr | UINT_LIT) | "maxresp" UINT_LIT | "multicastaddr" ip_addr | "maxrespdelay" UINT_LIT | "checksum" | "grekey" UINT_LIT | "greseq" UINT_LIT | "greproto" UINT_LIT | ("vni" | "vnid") UINT_LIT | "optclass" UINT_LIT | "opttype" UINT_LIT | "protocoltype" UINT_LIT | "spi" UINT_LIT | "iv" (HEX_STRING_LIT | UINT_LIT) | "icv" (HEX_STRING_LIT | UINT_LIT) | "initiatorspi" UINT_LIT | "responderspi" UINT_LIT | "exchange" ("sainit" | "auth" | "createchildsa" | "informational") | "sainit" | "createchildsa" | "informational" | "auth" str_or_ident? | "msgid" UINT_LIT | "nextpayload" UINT_LIT | "initiation" | "cookie" str_or_ident? | "data" str_or_ident? | "sender" UINT_LIT | "receiver" UINT_LIT | "counter" UINT_LIT | "hello" | "dbd" | "lsr" | "lsu" | "lsack" | "routerid" ip_addr | "areaid" (UINT_LIT | ip_addr) | "hellointerval" UINT_LIT | "deadinterval" UINT_LIT | "priority" UINT_LIT | "open" | "update" | "notification" | "keepalive" UINT_LIT? | "asn" UINT_LIT | "holdtime" UINT_LIT | "bgpid" ip_addr | ("prefix" | "nlri") any_str | "nexthop" ip_addr | "command" any_str | "metric" UINT_LIT | "tag" (UINT_LIT | str_or_ident) | "vrid" UINT_LIT | "advint" UINT_LIT | "vip" ip_addr | "state" UINT_LIT | "joinprune" | "register" | "source" ip_addr | "rp" ip_addr | "drpriority" UINT_LIT | "diag" UINT_LIT | "mydisc" UINT_LIT | "yourdisc" UINT_LIT | "mintx" UINT_LIT | "minrx" UINT_LIT | "mult" UINT_LIT | "featuresreq" | "featuresreply" | "packetin" | "packetout" | "flowmod" | "echoreq" | "xid" UINT_LIT | "dpid" UINT_LIT | "tableid" UINT_LIT | "version" UINT_LIT | "routemon" | "statsreport" | "peerdown" | "peerup" | "termination" | "announce" | "withdraw" | "peerip" ip_addr | "peertype" UINT_LIT | "timestamp" UINT_LIT | "reason" UINT_LIT | "sysname" str_or_ident | "sysdesc" str_or_ident | "cos" UINT_LIT | "sessionid" UINT_LIT | "index" UINT_LIT | "direction" UINT_LIT | "vid" UINT_LIT | "flags" UINT_LIT | "request" | "response" | "forwarder" UINT_LIT | "weight" UINT_LIT | "vmac" MAC_ADDR | "ownerid" MAC_ADDR | "hellotime" UINT_LIT | "gpdu" | "errorindication" | "endmarker" | "teid" UINT_LIT | "seqnum" UINT_LIT | "npdu" UINT_LIT | "qfi" UINT_LIT | "srcip" ip_addr | "dstip" ip_addr | "innerdscp" UINT_LIT | "innerttl" UINT_LIT | "proto" UINT_LIT | "sccrq" | "sccrp" | "scccn" | "stopccn" | "msgtype" any_str | "tunnelid" UINT_LIT | "ns" UINT_LIT | "nr" UINT_LIT | "hostname" str_or_ident | "errmsg" str_or_ident | "init" | "labelmapping" | "labelrequest" | "labelwithdraw" | "labelrelease" | "lsrid" ip_addr | "labelspace" UINT_LIT | "label" UINT_LIT | "status" UINT_LIT | "maprequest" | "mapreply" | "mapregister" | "mapnotify" | "ecm" | "nonce" UINT_LIT | "iid" UINT_LIT | "eid" any_str | "rloc" ip_addr | "serialnotify" | "serialquery" | "resetquery" | "cacheresponse" | "ipv4prefix" | "ipv6prefix" | "endofdata" | "cachereset" | "errorreport" | "serial" UINT_LIT | "maxlen" UINT_LIT | "errcode" UINT_LIT | "refresh" UINT_LIT | "retry" UINT_LIT | "expire" UINT_LIT | "path" | "resv" | "patherr" | "resverr" | "pathtear" | "resvtear" | "resvconf" | "lspid" UINT_LIT | "segleft" UINT_LIT | "sid" ip_addr // 9. Layer 4 SCTP Sub-Keywords l4_proto_field: "vtag" UINT_LIT | "stream" UINT_LIT | "ssn" UINT_LIT | "ppid" UINT_LIT | "tsn" UINT_LIT | "chunk" any_str | "data" | "init" | "initack" | "sack" | "heartbeat" | "heartbeatack" | "abort" | "shutdown" | "shutdownack" | "shutdowncomplete" | "cookieecho" | "cookieack" // 10. SNMPv1 / SNMPv2c / SNMPv3 Sub-Keywords snmp_proto_field: "trap" | "inform" | "get" | "getnext" | "getbulk" | "set" | "response" | "report" | "community" string_lit | "oid" oid_lit | "sysuptime" UINT_LIT | "reqid" UINT_LIT | "nonrepeaters" UINT_LIT | "maxrepetitions" UINT_LIT | "enterprise" oid_lit | "agentip" ip_addr | "gentrap" UINT_LIT | "spectrap" UINT_LIT | "user" any_str | "engineid" string_lit | "engineboots" UINT_LIT | "enginetime" UINT_LIT | "contextname" string_lit | "auth" ("md5" | "sha" | "sha256" | "sha384" | "sha512") string_lit | "priv" ("des" | "aes") string_lit | "varbind" oid_lit varbind_val varbind_val: "nullval" | "null" | "string" string_lit | "int" int_lit | "timeticks" UINT_LIT | "ipval" ip_addr | "oidval" oid_lit | "counter32" UINT_LIT | "gauge32" UINT_LIT | "counter64" UINT_LIT // 11. Layer 7 Sub-Keywords (91 protocols) l7_proto_field: "txid" UINT_LIT | "qname" any_str | "qtype" any_str | "rdata" any_str | "rcode" UINT_LIT | "ansttl" UINT_LIT | "edns0" | "udpsize" UINT_LIT | "dobit" | "discover" | "solicit" | "offer" | "advertise" | "release" | "ciaddr" ip_addr | "yiaddr" ip_addr | "siaddr" ip_addr | "chaddr" MAC_ADDR | "hostname" str_or_ident | "dnsserver" ip_addr | "router" ip_addr | "subnetmask" ip_addr | "leasetime" UINT_LIT | "li" UINT_LIT | "vn" UINT_LIT | "mode" any_str | "stratum" UINT_LIT | "poll" UINT_LIT? | "precision" int_lit | "refid" str_or_ident | "txtimestamp" UINT_LIT | "msgtype" any_str | "sync" | "delayreq" | "followup" | "delayresp" | "announce" | "domain" any_str | "seqid" UINT_LIT | "clockid" any_str | "accessrequest" | "accessaccept" | "accessreject" | "accesschallenge" | "accountingrequest" | "accountingresponse" | "nasip" ip_addr | "servicetype" UINT_LIT | "framedip" ip_addr | "authen" | "author" | "acct" | "sessionid" any_str | "facility" UINT_LIT | "severity" UINT_LIT | "pri" UINT_LIT | "app" str_or_ident? | "procid" str_or_ident | "msg" str_or_ident | "srcip" ip_addr | "dstip" ip_addr | "proto" UINT_LIT | "packets" UINT_LIT | "octets" UINT_LIT | "domainid" UINT_LIT | "subagentid" UINT_LIT | "uptime" UINT_LIT | "samples" UINT_LIT | "rrq" | "wrq" | "error" | "filename" str_or_ident | "block" UINT_LIT | "errcode" int_lit | "errmsg" str_or_ident | "cmd" any_str | "command" any_str | "arg" str_or_ident | "reply" str_or_ident? | "banner" str_or_ident | "kexinit" | "newkeys" | "msgcode" UINT_LIT | ("will" | "wont" | "do" | "dont") "option"? UINT_LIT | "option" UINT_LIT | "post" | "put" | "delete" | "head" | "options" | "patch" | "uri" str_or_ident | "hosthdr" any_str | "useragent" str_or_ident | "contenttype" str_or_ident | "status" any_str | "reason" str_or_ident | "header" str_or_ident str_or_ident | "body" str_or_ident | "preface" | "settings" | "headers" | "windowupdate" | "ping" | "goaway" | "streamid" UINT_LIT | "service" any_str | "method" any_str | "grpcstatus" UINT_LIT | "opcode" any_str | "text" | "binary" | "pong" | "close" | "finbit" UINT_LIT | "maskkey" UINT_LIT | "clienthello" | "serverhello" | "certificate" | "finished" | "appdata" | "alert" | "recordversion" UINT_LIT | "handshakeversion" UINT_LIT | "sni" str_or_ident | "ciphersuite" UINT_LIT | "alpn" str_or_ident | "initial" | "zerortt" | "handshake" | "retry" | "short" | "dcid" (UINT_LIT | str_or_ident) | "scid" (UINT_LIT | str_or_ident) | "token" (UINT_LIT | str_or_ident) | "pktnum" UINT_LIT | "bindingrequest" | "bindingresponse" | "bindingerror" | "xormappedaddr" ip_addr UINT_LIT? | "software" str_or_ident | "invite" | "bye" | "cancel" | "from" str_or_ident | "to" str_or_ident | "callid" any_str | "cseq" UINT_LIT | "via" str_or_ident | "contact" str_or_ident | "pt" UINT_LIT | "timestamp" UINT_LIT | "ssrc" UINT_LIT | "marker" UINT_LIT? | "describe" | "setup" | "play" | "teardown" | "transporthdr" str_or_ident | "session" str_or_ident | "ehlo" string_lit? | "helo" string_lit? | "mailfrom" string_lit? | "rcptto" string_lit? | "data" str_or_ident? | "quit" | "param" (UINT_LIT | str_or_ident) | "ok" | "err" | "asreq" | "asrep" | "tgsreq" | "tgsrep" | "krberror" | "realm" any_str | "cname" str_or_ident | "sname" str_or_ident | "etype" int_lit | "bindreq" | "bindres" | "searchreq" | "searchentry" | "searchdone" | "unbindreq" | "basedn" str_or_ident | "filter" str_or_ident | "resultcode" UINT_LIT | "negotiate" | "sessionsetup" | "treeconnect" | "create" | "treedisconnect" | "treeid" UINT_LIT | "share" str_or_ident | "vers" any_str | "proc" any_str | "path" str_or_ident | "compound" | "args" str_or_ident | "replytype" any_str | "key" any_str | "value" any_str | "exptime" UINT_LIT | "opaque" UINT_LIT | "cas" UINT_LIT | "greeting" | "login" | "eof" | "sql" any_str | "serverversion" str_or_ident | "db" any_str | "startup" | "readyforquery" | "commandcomplete" | "errorresponse" | "authok" | "connect" | "connack" | "publish" | "puback" | "subscribe" | "suback" | "pingreq" | "pingresp" | "disconnect" | "clientid" any_str | "topic" any_str | "qos" UINT_LIT | "retain" UINT_LIT? | "pkttype" any_str | "pktid" UINT_LIT | "returncode" UINT_LIT | "con" | "non" | "changed" | "created" | "notfound" | "uripath" str_or_ident | "contentformat" UINT_LIT | "protocolheader" | "connectionstart" | "channelopen" | "basicpublish" | "basicdeliver" | "channel" (UINT_LIT | str_or_ident) | "routingkey" str_or_ident | "msearch" | "notify" | "man" str_or_ident | "mx" UINT_LIT | "st" str_or_ident | "nt" str_or_ident | "nts" str_or_ident | "usn" str_or_ident | "location" str_or_ident | "registrar" str_or_ident | "protoid" UINT_LIT | "unitid" UINT_LIT | "func" any_str | "readcoils" | "readdiscreteinputs" | "readholdingregisters" | "readinputregisters" | "writesinglecoil" | "writesingleregister" | "writemultipleregisters" | "addr" any_str | "count" UINT_LIT | "isresponse" | "whois" | "iam" | "readproperty" | "writeproperty" | "complexack" | "invokeid" UINT_LIT | "objecttype" UINT_LIT | "objectinstance" UINT_LIT | "propertyid" UINT_LIT | "real" real_lit | "confirm" | "read" | "write" | "select" | "operate" | "directoperate" | "response" str_or_ident? | "unsolicitedresponse" | "variation" UINT_LIT | "crc" UINT_LIT | "src" UINT_LIT | "dst" UINT_LIT | "rosctr" any_str | "pduref" UINT_LIT | "setupcomm" | "readvar" | "writevar" | "plccontrol" | "szl" | "area" any_str | "dbnum" UINT_LIT | "offset" UINT_LIT | "nop" | "listservices" | "listidentity" | "listinterfaces" | "registersession" | "unregistersession" | "sendrrdata" | "sendunitdata" | "sessionhandle" UINT_LIT | "context" (UINT_LIT | str_or_ident) | "cipservice" UINT_LIT | "cipclass" UINT_LIT | "cipinstance" UINT_LIT | "cipattr" UINT_LIT | "chunktype" any_str | "securechannelid" UINT_LIT | "tokenid" UINT_LIT | "seqnum" UINT_LIT | "endpointurl" str_or_ident | "nodeid" any_str | "version" (UINT_LIT | str_or_ident) | "type" any_str | "flags" UINT_LIT | "msgid" any_str | "group" any_str? | "exchange" str_or_ident | "target" str_or_ident | "id" UINT_LIT | "keepalive" UINT_LIT? | "redirect" | "cookie" str_or_ident | "tag" str_or_ident | "xid" UINT_LIT | "nbtype" UINT_LIT | "scope" str_or_ident | "refresh" | "cer" | "cea" | "dwr" | "dwa" | "ccr" | "cca" | "request" | "appid" UINT_LIT | "hopid" UINT_LIT | "endid" UINT_LIT | "originhost" any_str | "dsthost" any_str | "dstrealm" any_str | "rpc" | "rpcreply" | "hello" | "operation" str_or_ident | "capability" str_or_ident | "chunked" | "requestsession" | "acceptsession" | "serverstart" | "setupresponse" | "startsessions" | "startack" | "stopsessions" | "sender" | "reflector" | "port" UINT_LIT | "padding" UINT_LIT | "senderttl" UINT_LIT | "errorestimate" UINT_LIT | "ngsetuprequest" | "ngsetupresponse" | "ngsetupfailure" | "initialuemessage" | "downlinknastransport" | "uplinknastransport" | "uecontextreleasecommand" | "uecontextreleasecomplete" | "errorindication" | "s1setuprequest" | "s1setupresponse" | "s1setupfailure" | "proccode" UINT_LIT | "criticality" any_str | "amfueid" UINT_LIT | "ranueid" UINT_LIT | "mmeueid" UINT_LIT | "enbueid" UINT_LIT | "plmn" any_str | "tac" UINT_LIT | "gnbid" UINT_LIT | "enbid" UINT_LIT | "ranname" any_str | "enbname" any_str | "naspdu" (HEX_STRING_LIT | UINT_LIT) | "allocate" | "createpermission" | "channelbind" | "channeldata" | "sendindication" | "dataindication" | "lifetime" UINT_LIT | "requestedtransport" ("udp" | "tcp" | UINT_LIT) | "xorrelayedaddr" ip_addr UINT_LIT? | "xorpeeraddr" ip_addr UINT_LIT? | "sr" | "rr" | "sdes" | "lost" UINT_LIT | "jitter" UINT_LIT | "fraction" UINT_LIT | "authenticate" | "challenge" | "workstation" str_or_ident | "nonce" any_str | "bind" | "bindack" | "bindnak" | "altercontext" | "fault" | "opnum" UINT_LIT | "ctxid" UINT_LIT | "uuid" any_str | "logout" | "initiator" str_or_ident | "cmdsn" UINT_LIT | "statsn" UINT_LIT | "itt" UINT_LIT | "lun" UINT_LIT | "icreq" | "icresp" | "h2cdata" | "c2hdata" | "r2t" | "qid" UINT_LIT | "nsid" UINT_LIT | "prelogin" | "attention" | "spid" UINT_LIT | "collection" str_or_ident | "responseto" UINT_LIT | "accept" | "refuse" | "sid" (UINT_LIT | str_or_ident) | "apiversions" | "metadata" | "produce" | "fetch" | "heartbeat" | "apikey" (UINT_LIT | any_str) | "correlationid" int_lit | "acks" int_lit | "partition" int_lit | "probe" | "types" str_or_ident | "scopes" str_or_ident | "xaddrs" str_or_ident | "grq" | "gcf" | "rcf" | "drq" | "dcf" | "callproceeding" | "alerting" | "releasecomplete" | "callref" UINT_LIT | "callingparty" any_str | "calledparty" any_str | "rasaddr" ip_addr UINT_LIT? | "cause" UINT_LIT | "crcx" | "mdcx" | "dlcx" | "rqnt" | "ntfy" | "auep" | "aucx" | "rsip" | "endpoint" str_or_ident | "connid" any_str | "localopts" str_or_ident | "registerack" | "offhook" | "onhook" | "callstate" | "starttone" | "stoptone" | "openreceivechannel" | "openreceivechannelack" | "keypadbutton" | "keepaliveack" | "line" UINT_LIT | "button" UINT_LIT | "tone" UINT_LIT | "mediaport" UINT_LIT | "devicename" any_str | "createsessionrequest" | "createsessionresponse" | "modifybearerrequest" | "modifybearerresponse" | "deletesessionrequest" | "deletesessionresponse" | "echoresponse" | "teid" UINT_LIT | "imsi" any_str | "apn" any_str | "rat" UINT_LIT | "recovery" UINT_LIT | "heartbeatrequest" | "heartbeatresponse" | "associationsetuprequest" | "associationsetupresponse" | "sessionestablishmentrequest" | "sessionestablishmentresponse" | "sessionmodificationrequest" | "sessionmodificationresponse" | "sessiondeletionrequest" | "sessiondeletionresponse" | "seid" UINT_LIT | "ackreq" | "destqp" UINT_LIT | "pkey" UINT_LIT | "x224cr" | "x224cc" | "mcs" | "width" UINT_LIT | "height" UINT_LIT | "desktop" str_or_ident | "securitytype" UINT_LIT | "xpos" UINT_LIT | "ypos" UINT_LIT | "udpassociate" | "targetport" UINT_LIT | "password" str_or_ident | "netfn" UINT_LIT | "rqseq" UINT_LIT | "nick" string_lit? | "join" string_lit? | "privmsg" string_lit? | "routingreq" | "routingresp" | "vehicleid" | "vehicleeid" | "vehiclevin" | "announcement" | "diagnostic" | "diagack" | "diagnack" | "alivecheckreq" | "alivecheckresp" | "nack" | "eid" (MAC_ADDR | HEX_STRING_LIT | UINT_LIT) | "gid" (MAC_ADDR | HEX_STRING_LIT | UINT_LIT) | "vin" str_or_ident | "invversion" UINT_LIT | "requestnoreply" | "findservice" | "offerservice" | "subscribeack" | "serviceid" UINT_LIT | "methodid" UINT_LIT | "protover" UINT_LIT | "ifacever" UINT_LIT | "sdservice" UINT_LIT | "instanceid" UINT_LIT | "majorver" UINT_LIT | "minorver" UINT_LIT | "sdttl" UINT_LIT | "endpointip" ip_addr | "endpointport" UINT_LIT | "identify" | "logon" | "terminate" | "epsemctrl" UINT_LIT | "edclass" UINT_LIT | "callingap" oid_lit | "calledap" oid_lit | "callingid" UINT_LIT | "calledid" UINT_LIT | "startdt" | "stopdt" | "testfr" | "sframe" | "typeid" UINT_LIT | "cot" (UINT_LIT | any_str) | "ca" UINT_LIT | "ioa" UINT_LIT | "txseq" UINT_LIT | "rxseq" UINT_LIT | "icf" UINT_LIT | "dna" UINT_LIT | "da1" UINT_LIT | "da2" UINT_LIT | "sna" UINT_LIT | "sa1" UINT_LIT | "sa2" UINT_LIT | "subcmd" UINT_LIT | "network" UINT_LIT | "pc" UINT_LIT | "io" UINT_LIT | "station" (UINT_LIT | str_or_ident) | "device" (str_or_ident | UINT_LIT) | "timer" UINT_LIT | "endcode" UINT_LIT | "getnamelist" | "conclude" | "item" str_or_ident | "fracsec" UINT_LIT // 12. Lexical Terminals & Priority Disambiguation ident_or_kw: IDENT | contextual_keyword ident: ident_or_kw string_lit: STRING_LIT | HEX_STRING_LIT int_lit: UINT_LIT | NEG_INT_LIT str_or_ident: string_lit | IDENT | contextual_keyword any_str: str_or_ident | int_lit | ip_addr | MAC_ADDR | oid_lit contextual_keyword: "abort" | "accept" | "acceptsession" | "accessaccept" | "accesschallenge" | "accessreject" | "accessrequest" | "accookie" | "accountingrequest" | "accountingresponse" | "acct" | "ack" | "acknum" | "ackreq" | "acks" | "acname" | "actorkey" | "actorport" | "actorstate" | "actorsys" | "addr" | "ado" | "adp" | "advertise" | "advint" | "aes" | "agentip" | "ah" | "alert" | "alerting" | "alivecheckreq" | "alivecheckresp" | "allocate" | "alpn" | "altercontext" | "amfueid" | "amqp" | "an" | "announce" | "announcement" | "ansttl" | "apikey" | "apiversions" | "apn" | "app" | "appdata" | "appid" | "area" | "areaid" | "arg" | "args" | "arp" | "asn" | "asrep" | "asreq" | "associationsetuprequest" | "associationsetupresponse" | "attention" | "aucx" | "auep" | "auth" | "authen" | "authenticate" | "authok" | "author" | "bacnet" | "badchecksum" | "badfcs" | "badipchecksum" | "banner" | "basedn" | "basicdeliver" | "basicpublish" | "bfd" | "bgp" | "bgpid" | "binary" | "bind" | "bindack" | "bindingerror" | "bindingrequest" | "bindingresponse" | "bindnak" | "bindreq" | "bindres" | "block" | "bmp" | "body" | "bos" | "bridgeid" | "bsap" | "button" | "bye" | "c1222" | "c2hdata" | "ca" | "cachereset" | "cacheresponse" | "calledap" | "calledid" | "calledparty" | "callid" | "callingap" | "callingid" | "callingparty" | "callproceeding" | "callref" | "callstate" | "cancel" | "capabilities" | "capability" | "cas" | "cause" | "cca" | "ccr" | "cdp" | "cea" | "cer" | "certificate" | "chaddr" | "challenge" | "changed" | "channel" | "channelbind" | "channeldata" | "channelopen" | "chassisid" | "checksum" | "chunk" | "chunked" | "chunktype" | "ciaddr" | "cipattr" | "cipclass" | "ciphersuite" | "cipinstance" | "cipservice" | "circuittype" | "clienthello" | "clientid" | "clockid" | "close" | "cmd" | "cmdsn" | "cname" | "coap" | "code" | "collection" | "command" | "commandcomplete" | "comment" | "community" | "compile" | "complexack" | "compound" | "con" | "conclude" | "confirm" | "confrev" | "connack" | "connect" | "connectionstart" | "connid" | "contact" | "contentformat" | "contenttype" | "context" | "contextname" | "cookie" | "cookieack" | "cookieecho" | "correlationid" | "cos" | "cost" | "cot" | "count" | "counter" | "counter32" | "counter64" | "crc" | "crcx" | "create" | "createchildsa" | "created" | "createpermission" | "createsessionrequest" | "createsessionresponse" | "criticality" | "cseq" | "ctxid" | "cwr" | "cycle" | "da1" | "da2" | "data" | "dataindication" | "datastatus" | "datset" | "db" | "dbd" | "dbnum" | "dcerpc" | "dcf" | "dcid" | "deadinterval" | "dei" | "delayreq" | "delayresp" | "delete" | "deletesessionrequest" | "deletesessionresponse" | "des" | "describe" | "desktop" | "destqp" | "destunreach" | "device" | "deviceid" | "devicename" | "df" | "dhcp" | "diag" | "diagack" | "diagnack" | "diagnostic" | "diameter" | "direction" | "directoperate" | "disconnect" | "discover" | "dlcx" | "dna" | "dnp3" | "dns" | "dnsserver" | "do" | "dobit" | "doh" | "doip" | "domain" | "domainid" | "done" | "dont" | "downlinknastransport" | "dpid" | "drpriority" | "drq" | "dscp" | "dst" | "dsthost" | "dstip" | "dstmac" | "dstport" | "dstrealm" | "dwa" | "dwr" | "eapcode" | "eapid" | "eapmethod" | "eapol" | "eappacket" | "ece" | "echoreply" | "echoreq" | "echorequest" | "echoresponse" | "ecm" | "ecn" | "edclass" | "edns0" | "ehlo" | "eid" | "enable" | "enbid" | "enbname" | "enbueid" | "endcode" | "endid" | "endmarker" | "endofdata" | "endpoint" | "endpointip" | "endpointport" | "endpointurl" | "engineboots" | "engineid" | "enginetime" | "enterprise" | "eof" | "epsemctrl" | "err" | "errcode" | "errmsg" | "error" | "errorestimate" | "errorindication" | "errorreport" | "errorresponse" | "erspan" | "esp" | "ethercat" | "ethernetip" | "ethertype" | "etype" | "exchange" | "exp" | "expire" | "exptime" | "facility" | "fault" | "fcs" | "featuresreply" | "featuresreq" | "fetch" | "filename" | "filter" | "fin" | "finbit" | "findservice" | "finished" | "fins" | "flags" | "flow" | "flowlabel" | "flowmod" | "followup" | "forwarddelay" | "forwarder" | "fracsec" | "fraction" | "fragoffset" | "framedip" | "frameid" | "from" | "ftp" | "func" | "garp" | "gateway" | "gauge32" | "gcf" | "geneve" | "gentrap" | "gesrtp" | "get" | "getbulk" | "getnamelist" | "getnext" | "gid" | "glbp" | "gnbid" | "goaway" | "gocbref" | "goid" | "goose" | "gpdu" | "gratuitous" | "gre" | "greeting" | "grekey" | "greproto" | "greseq" | "group" | "grpc" | "grpcstatus" | "grq" | "gtpc" | "gtpu" | "h2cdata" | "h323" | "handshake" | "handshakeversion" | "hartip" | "head" | "header" | "headers" | "heartbeat" | "heartbeatack" | "heartbeatrequest" | "heartbeatresponse" | "height" | "hello" | "hellointerval" | "hellotime" | "helo" | "hexpayload" | "holdtime" | "hopid" | "host" | "hosthdr" | "hostname" | "hostuniq" | "hsrp" | "http" | "http2" | "iam" | "icf" | "icmp" | "icreq" | "icresp" | "icv" | "id" | "identify" | "identity" | "idx" | "iec104" | "ifacever" | "igmp" | "iid" | "ikev2" | "imap" | "imsi" | "index" | "inform" | "informational" | "init" | "initack" | "initial" | "initialuemessage" | "initiation" | "initiator" | "initiatorspi" | "innerdscp" | "innerttl" | "innervlan" | "instanceid" | "int" | "invite" | "invokeid" | "invversion" | "io" | "ioa" | "ip" | "ipfix" | "ipid" | "ipip" | "ipmi" | "ipsec" | "ipv4prefix" | "ipv6prefix" | "ipval" | "irc" | "irq" | "iscsi" | "isis" | "isresponse" | "item" | "itt" | "iv" | "jitter" | "join" | "joinprune" | "kafka" | "keepalive" | "keepaliveack" | "kerberos" | "kexinit" | "key" | "keypadbutton" | "knxnetip" | "krberror" | "l1csnp" | "l1iih" | "l1lsp" | "l1psnp" | "l2csnp" | "l2iih" | "l2lsp" | "l2psnp" | "l2tp" | "label" | "labelmapping" | "labelrelease" | "labelrequest" | "labelspace" | "labelwithdraw" | "lacp" | "lanid" | "ldap" | "ldp" | "leasetime" | "leave" | "li" | "lifetime" | "line" | "lisp" | "listidentity" | "listinterfaces" | "listservices" | "lldp" | "llmnr" | "localopts" | "location" | "login" | "logoff" | "logon" | "logout" | "lost" | "lsack" | "lspid" | "lsr" | "lsrid" | "lsu" | "lun" | "m" | "mac" | "macsec" | "mailfrom" | "majorver" | "man" | "mapnotify" | "mapregister" | "mapreply" | "maprequest" | "marker" | "maskkey" | "maxage" | "maxlen" | "maxrepetitions" | "maxresp" | "maxrespdelay" | "mcs" | "md5" | "mdcx" | "mdns" | "mdtype" | "mediaport" | "melsec" | "memcached" | "metadata" | "method" | "methodid" | "metric" | "mf" | "mgcp" | "minorver" | "minrx" | "mintx" | "mld" | "mmeueid" | "mms" | "modbus" | "mode" | "modifybearerrequest" | "modifybearerresponse" | "mongodb" | "mpls" | "mplsttl" | "mqtt" | "ms" | "msearch" | "msg" | "msgcode" | "msgid" | "msgtype" | "mss" | "mssql" | "mult" | "multicastaddr" | "mx" | "mydisc" | "mysql" | "nack" | "nasip" | "naspdu" | "nativevlan" | "nbns" | "nbtype" | "ndp" | "ndscom" | "negotiate" | "neighboradvert" | "neighborsolicit" | "netconf" | "netflow" | "netfn" | "network" | "newkeys" | "nextheader" | "nexthop" | "nextpayload" | "nextproto" | "nfs" | "ngap" | "ngsetupfailure" | "ngsetuprequest" | "ngsetupresponse" | "nick" | "nlri" | "nochecksum" | "nodeid" | "non" | "nonce" | "nonrepeaters" | "nop" | "notfound" | "notification" | "notify" | "npdu" | "nr" | "ns" | "nsh" | "nsid" | "nt" | "ntfy" | "ntlm" | "ntp" | "nts" | "null" | "nullval" | "numdatsetentries" | "nvmetcp" | "oam" | "objectinstance" | "objecttype" | "octets" | "offer" | "offerservice" | "offhook" | "offset" | "oid" | "oidval" | "ok" | "onhook" | "opaque" | "opcode" | "opcua" | "open" | "openflow" | "openreceivechannel" | "openreceivechannelack" | "operate" | "operation" | "opnum" | "optclass" | "option" | "options" | "opttype" | "originhost" | "ospf" | "ownerid" | "p2piih" | "packetin" | "packetout" | "packets" | "padding" | "padi" | "pado" | "padr" | "pads" | "padt" | "param" | "partition" | "partnerkey" | "partnerport" | "partnerstate" | "partnersys" | "password" | "patch" | "path" | "patherr" | "pathtear" | "payload" | "pc" | "pcp" | "pduref" | "peerdown" | "peerip" | "peertype" | "peerup" | "pfc" | "pfcp" | "pim" | "ping" | "pingreq" | "pingresp" | "pkey" | "pktid" | "pktnum" | "pkttype" | "platform" | "play" | "plccontrol" | "plmn" | "pn" | "poll" | "pong" | "pop3" | "port" | "portid" | "post" | "postgres" | "ppid" | "pppoe" | "pppproto" | "precision" | "preface" | "prefix" | "prelogin" | "pri" | "priority" | "priv" | "privmsg" | "probe" | "proc" | "proccode" | "procid" | "produce" | "profinet" | "propertyid" | "proto" | "protocolheader" | "protocoltype" | "protoid" | "protover" | "psh" | "pt" | "ptp" | "puback" | "publish" | "put" | "q0" | "q1" | "q2" | "q3" | "q4" | "q5" | "q6" | "q7" | "qfi" | "qid" | "qinq" | "qname" | "qos" | "qtype" | "quanta" | "query" | "quic" | "quit" | "r2t" | "radius" | "ranname" | "ranueid" | "rasaddr" | "rat" | "rcf" | "rcode" | "rcptto" | "rdata" | "rdp" | "read" | "readcoils" | "readdiscreteinputs" | "readholdingregisters" | "readinputregisters" | "readproperty" | "readvar" | "readyforquery" | "real" | "realm" | "reason" | "receiver" | "recordversion" | "recovery" | "redirect" | "redis" | "refid" | "reflector" | "refresh" | "refuse" | "register" | "registerack" | "registersession" | "registrar" | "release" | "releasecomplete" | "repeat" | "reply" | "replytype" | "report" | "reqid" | "request" | "requestedtransport" | "requestnoreply" | "requestsession" | "resetquery" | "responderspi" | "response" | "responseto" | "resultcode" | "resv" | "resvconf" | "resverr" | "resvtear" | "retain" | "retry" | "returncode" | "rip" | "rloc" | "rocev2" | "rocplus" | "rootid" | "rosctr" | "routemon" | "router" | "routeradvert" | "routeralert" | "routerid" | "routerlifetime" | "routersolicit" | "routingkey" | "routingreq" | "routingresp" | "rp" | "rpc" | "rpcreply" | "rpkirtr" | "rqnt" | "rqseq" | "rr" | "rrq" | "rsip" | "rst" | "rstp" | "rsvp" | "rtcp" | "rtp" | "rtsp" | "rxseq" | "s" | "s1ap" | "s1setupfailure" | "s1setuprequest" | "s1setupresponse" | "s7comm" | "s7commplus" | "sa1" | "sa2" | "sack" | "sackblock" | "sackperm" | "sainit" | "samples" | "scccn" | "sccp" | "sccrp" | "sccrq" | "sci" | "scid" | "scope" | "scopes" | "sctp" | "sdes" | "sdservice" | "sdttl" | "searchdone" | "searchentry" | "searchreq" | "securechannelid" | "securitytype" | "segleft" | "seid" | "select" | "sender" | "senderip" | "sendermac" | "senderttl" | "sendindication" | "sendrrdata" | "sendunitdata" | "seq" | "seqid" | "seqnum" | "serial" | "serialnotify" | "serialquery" | "serverhello" | "serverstart" | "serverversion" | "service" | "serviceid" | "servicename" | "servicetype" | "session" | "sessiondeletionrequest" | "sessiondeletionresponse" | "sessionestablishmentrequest" | "sessionestablishmentresponse" | "sessionhandle" | "sessionid" | "sessionmodificationrequest" | "sessionmodificationresponse" | "sessionsetup" | "set" | "settings" | "setup" | "setupcomm" | "setupresponse" | "severity" | "sflow" | "sframe" | "sha" | "sha256" | "sha384" | "sha512" | "share" | "short" | "shutdown" | "shutdownack" | "shutdowncomplete" | "si" | "siaddr" | "sid" | "simulation" | "sip" | "sl" | "slla" | "smb" | "smpcnt" | "smprate" | "smpsynch" | "smtp" | "sna" | "sname" | "sni" | "snmp1" | "snmp2" | "snmp3" | "socks" | "software" | "solicit" | "someip" | "source" | "spa" | "spectrap" | "spi" | "spid" | "sql" | "sqnum" | "sr" | "src" | "srcip" | "srcmac" | "srcport" | "srv6" | "ssdp" | "ssh" | "ssn" | "ssrc" | "st" | "start" | "startack" | "startdt" | "startsessions" | "starttone" | "startup" | "state" | "station" | "statsn" | "statsreport" | "status" | "stnum" | "stopccn" | "stopdt" | "stopsessions" | "stoptone" | "stp" | "stratum" | "stream" | "streamid" | "string" | "stun" | "suback" | "subagentid" | "subcmd" | "subnetmask" | "subscribe" | "subscribeack" | "sv" | "svid" | "swversion" | "syn" | "sync" | "synchrophasor" | "sysdesc" | "sysid" | "syslog" | "sysname" | "sysuptime" | "szl" | "tableid" | "tac" | "tacacs" | "tag" | "target" | "targetip" | "targetmac" | "targetport" | "tc" | "tci" | "tcp" | "tcpmd5" | "teardown" | "teid" | "telnet" | "terminate" | "termination" | "testfr" | "text" | "tfo" | "tftp" | "tgsrep" | "tgsreq" | "tha" | "timeexceeded" | "timeout" | "timer" | "timestamp" | "timeticks" | "timetolive" | "tlla" | "tls" | "tns" | "to" | "token" | "tokenid" | "tone" | "topic" | "tpa" | "transferstatus" | "transport" | "transporthdr" | "trap" | "treeconnect" | "treedisconnect" | "treeid" | "tsecr" | "tsn" | "tsval" | "ttl" | "tunnelid" | "turn" | "twamp" | "txid" | "txseq" | "txtimestamp" | "type" | "typeid" | "types" | "udp" | "udpassociate" | "udpsize" | "uecontextreleasecommand" | "uecontextreleasecomplete" | "unbindreq" | "unitid" | "unregistersession" | "unsolicitedresponse" | "update" | "uplinknastransport" | "uptime" | "urg" | "urgent" | "uri" | "uripath" | "us" | "user" | "useragent" | "usn" | "uuid" | "v1" | "v2" | "v3" | "v4" | "v6" | "value" | "varbind" | "variation" | "vehicleeid" | "vehicleid" | "vehiclevin" | "vers" | "version" | "via" | "vid" | "vin" | "vip" | "vlan" | "vmac" | "vn" | "vnc" | "vni" | "vnid" | "vrid" | "vrrp" | "vtag" | "vxlan" | "wait" | "websocket" | "weight" | "whois" | "width" | "will" | "win" | "window" | "windowupdate" | "wireguard" | "withdraw" | "wkc" | "wont" | "workstation" | "write" | "writemultipleregisters" | "writeproperty" | "writesinglecoil" | "writesingleregister" | "writevar" | "wrq" | "wscale" | "wsdiscovery" | "x224cc" | "x224cr" | "xaddrs" | "xid" | "xormappedaddr" | "xorpeeraddr" | "xorrelayedaddr" | "xpos" | "yiaddr" | "yourdisc" | "ypos" | "zerortt" duration_lit: DURATION_LIT | UINT_LIT time_unit time_unit: "ns" | "us" | "ms" | "s" | "m" ip_addr: IPV4_ADDR | IPV6_ADDR oid_lit: OID_LIT | IPV4_ADDR | string_lit real_lit: int_lit | OID_LIT | NEG_FLOAT_LIT | string_lit // 6-tier terminal priority ladder mirroring src/lexer/mod.rs (zero regex overlap): // 6: MAC_ADDR (. : - dotted) > 5: DURATION_LIT, IPV4_ADDR > 4: UINT_LIT, NEG_INT_LIT, // NEG_FLOAT_LIT > 3: OID_LIT, HEX_STRING_LIT > 2: IPV6_ADDR, STRING_LIT > 0: IDENT MAC_ADDR.6: /[0-9a-fA-F]{2}(?::[0-9a-fA-F]{2}){5}|[0-9a-fA-F]{2}(?:-[0-9a-fA-F]{2}){5}|[0-9a-fA-F]{4}(?:\.[0-9a-fA-F]{4}){2}/ DURATION_LIT.5: /(?:0[xX][0-9a-fA-F]+|[0-9]+)(?:ns|us|ms|s|m)\b/ IPV4_ADDR.5: /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ UINT_LIT.4: /0[xX][0-9a-fA-F]+|[0-9]+/ NEG_INT_LIT.4: /-[0-9]+/ NEG_FLOAT_LIT.4: /-[0-9]+\.[0-9]+/ OID_LIT.3: /\.?[0-9]+(?:\.[0-9]+)+/ HEX_STRING_LIT.3: /"[0-9a-fA-F: \t]*"/ IPV6_ADDR.2: /::[0-9a-fA-F:.]*|[0-9a-fA-F]{1,4}(?::[0-9a-fA-F:.]*)+/ STRING_LIT.2: /"(?:[^"\\\r\n]|\\[^\r\n])*"/ IDENT.0: /[a-zA-Z_][a-zA-Z0-9_]*(-[a-zA-Z0-9_]+)*/ COMMENT: /\/\/[^\r\n]*/ WS: /[ \t\r\n\f\ufeff]+/ %ignore WS %ignore COMMENT