{"id":24756875,"url":"https://github.com/0x2a-42/herring","last_synced_at":"2025-06-16T08:11:09.035Z","repository":{"id":274120141,"uuid":"921973709","full_name":"0x2a-42/herring","owner":"0x2a-42","description":"Lexer generator for Rust","archived":false,"fork":false,"pushed_at":"2025-03-29T14:31:25.000Z","size":106,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T21:06:28.492Z","etag":null,"topics":["lexer","lexing","logos","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0x2a-42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-25T01:41:56.000Z","updated_at":"2025-06-10T04:25:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd8365f9-ea0e-4d4f-8aab-edb313f3d12f","html_url":"https://github.com/0x2a-42/herring","commit_stats":null,"previous_names":["0x2a-42/herring"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0x2a-42/herring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2a-42%2Fherring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2a-42%2Fherring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2a-42%2Fherring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2a-42%2Fherring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x2a-42","download_url":"https://codeload.github.com/0x2a-42/herring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2a-42%2Fherring/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260124097,"owners_count":22962207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lexer","lexing","logos","rust"],"created_at":"2025-01-28T14:21:11.616Z","updated_at":"2025-06-16T08:11:09.025Z","avatar_url":"https://github.com/0x2a-42.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Herring\n[![Crates.io](https://img.shields.io/crates/v/herring)](https://crates.io/crates/herring)\n[![MIT/Apache 2.0](https://img.shields.io/crates/l/herring)](./LICENSE-MIT)\n[![Crates.io](https://img.shields.io/crates/d/herring)](https://crates.io/crates/herring)\n[![Rust](https://img.shields.io/github/actions/workflow/status/0x2a-42/herring/rust.yml)](https://github.com/0x2a-42/herring/actions)\n\n[Herring](https://en.wikipedia.org/wiki/Herring) (**H**ighly **E**fficient **R**ust **R**egex-based lexer **I**mplementatio**N** **G**enerator) is a lexer generator for Rust implementing a subset of the [Logos](https://github.com/maciejhirsz/logos) API.\n\nThe key differences compared to Logos are the following.\n\n- The `Herring` trait must be derived on a [unit-only enum](https://doc.rust-lang.org/reference/items/enumerations.html#r-items.enum.unit-only).\n- Only `Result\u003cTokenType, ErrorType\u003e` is allowed for a `regex` or `token` callback return type.\n- Lexer modes (`morph` method) are not supported (use callbacks and `extras` instead).\n- There is no `ignore(ascii_case)`, only `ignore(case)`.\n\nThese changes are mostly due to the use case as a lexer for the [Lelwel](https://github.com/0x2a-42/lelwel) parser generator, where unit-only enums are required.\nThere are also additional features that are not available in Logos.\n\n- There is an `ignore` callback that can be used to skip input before it is passed to the automaton (e.g. for lexing [escaped newlines](./tests/ignore.rs) in C).\n- There is an `initial` callback that can be used for generating tokens without consuming input (e.g. for [indent and dedent tokens](./tests/initial.rs) in Python).\n- A callback with unit return type can be specified for `skip` regexes.\n\n\u003e [!WARNING]\n\u003e At the moment you should almost certainly use Logos instead of Herring, as it is more mature and provides better performance.\n\u003e There are however also valid reasons for using Herring.\n\u003e There are currently some bugs in Logos related to [backtracking](https://github.com/maciejhirsz/logos/issues?q=is%3Aissue+is%3Aopen+backtracking) and [stack overflows](https://github.com/maciejhirsz/logos/issues?q=is%3Aissue+is%3Aopen+stack+overflow) that [are not present](./tests/logos_bugs.rs) in Herring.\n\u003e You may also use Herring if you require the `ignore` or `initial` callbacks.\n\n## Performance\n### Runtime\nHerring implements some of the optimizations also present in Logos.\nThese are jump tables for states with many outgoing transitions and stacked lookup tables for transitions with complicated byte ranges.\nIt does currently not implement some other optimizations such as loop unrolling or transitioning on strings.\n\n#### DFA Jump Threading\nUnlike Logos, which encodes its state machine with mutually tail recursive functions, Herring uses a `match` inside of a `loop`.\nThis has the advantage, that the state machine will not overflow the stack on long inputs, if it is compiled without optimizations.\nOn the other hand a disadvantage is, that Rust currently does not optimize away the extra jumps (see https://github.com/rust-lang/rust/issues/80630 and https://github.com/rust-lang/rfcs/pull/3720).\nBy passing [`-enable-dfa-jump-thread`](https://github.com/llvm/llvm-project/commit/02077da7e7a8ff76c0576bb33adb462c337013f5) to LLVM it is however possible to enable this optimization on the LLVM level.\nThis can be achieved by adding a [`.cargo/config.toml`](./.cargo/config.toml) file to your crate.\n\n\u003e [!CAUTION]\n\u003e Be aware, that adding LLVM passes to the rustc optimization pipeline is probably not well tested and may increase the probability for running into compiler bugs.\n\n#### Benchmark\nThe results of the [Logos benchmark](./benches/logos_benchmark.rs) on an Intel Core i7-8550U CPU are shown in the following table.\nCurrently in most cases Logos is faster than Herring with DFA jump threading.\n\n| Benchmark | Without DFA Jump Threading | With DFA Jump Threading | Logos |\n| --- | --- | --- | --- |\n| `iterate/identifiers` | 1.2541 µs (592.40 MiB/s) | **824.49 ns (901.06 MiB/s)** | 951.53 ns (780.75 MiB/s) |\n| `iterate/keywords_operators_and_punctators` | 6.2495 µs (325.19 MiB/s) | 2.9077 µs (698.94 MiB/s) | **2.6915 µs (755.08 MiB/s)** |\n| `iterate/strings` | 1.0770 µs (771.29 MiB/s) | 830.49 ns (1000.2 MiB/s) | **717.31 ns (1.1309 GiB/s)** |\n\n### Compile Time\nUsing complex unicode ranges or finite repetitions may result in large NFAs, for which the transformation to a minimized DFA may take a noticeable amount of time.\nTo improve build times you can add the following to your `Cargo.toml` file, so the procedural macro code is optimized.\n```toml\n[profile.dev.build-override]\nopt-level = 3\n\n[profile.release.build-override]\nopt-level = 3\n```\n\n## Example\nThe Herring API is almost identical to the Logos API, so it can be used as a drop in replacement, if the above mentioned restrictions apply.\n\nThe following example shows a lexer for JSON (string escape sequences are not validated, as this is better handled [after lexing](https://github.com/0x2a-42/lelwel/blob/3b1abbf4f717bdcff1e9f66f05086e7365410eee/examples/json/src/parser.rs#L97-L145), to avoid tripping up the parser with a missing string token).\n```rust\nuse herring::{Herring, Lexer};\n\n#[derive(Debug, Clone, PartialEq, Default)]\npub enum LexerError {\n    #[default]\n    Invalid,\n    UnterminatedString,\n}\nfn parse_string(lexer: \u0026mut Lexer\u003c'_, Token\u003e) -\u003e Result\u003cToken, LexerError\u003e {\n    let mut it = lexer.remainder().chars();\n    while let Some(c) = it.next() {\n        match c {\n            '\"' =\u003e {\n                lexer.bump(1);\n                return Ok(Token::String);\n            }\n            '\\\\' =\u003e {\n                lexer.bump(1);\n                if let Some(c) = it.next() {\n                    lexer.bump(c.len_utf8());\n                }\n            }\n            c =\u003e lexer.bump(c.len_utf8()),\n        }\n    }\n    Err(LexerError::UnterminatedString)\n}\n#[derive(Herring, Debug, PartialEq, Copy, Clone)]\n#[herring(error = LexerError)]\npub enum Token {\n    #[regex(\"[\\u{0020}\\u{000A}\\u{000D}\\u{0009}]+\")]\n    Whitespace,\n    #[token(\"true\")]\n    True,\n    #[token(\"false\")]\n    False,\n    #[token(\"null\")]\n    Null,\n    #[token(\"{\")]\n    LBrace,\n    #[token(\"}\")]\n    RBrace,\n    #[token(\"[\")]\n    LBrak,\n    #[token(\"]\")]\n    RBrak,\n    #[token(\",\")]\n    Comma,\n    #[token(\":\")]\n    Colon,\n    #[regex(\"\\\"\", parse_string)]\n    String,\n    #[regex(r\"-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?\")]\n    Number,\n}\nfn main() {\n    for tok in Token::lexer(r#\"{\"test\": [1,2,3]}\"#) {\n        println!(\"{tok:?}\");\n    }\n}\n```\n\n## Debugging\nYou can quickly inspect the generated code by running [`cargo expand`](https://github.com/dtolnay/cargo-expand).\n\nSetting the environment variable `HERRING_DEBUG` to `expand` will write the expanded code to a file `enum_name_lexer.rs`.\nUnlike `cargo expand` this will not expand all the macros.\nSetting `HERRING_DEBUG` to `skip` will prevent the procedural macro from generating any code.\nBy combining both of these modes you can easily include the expanded code so it can be analyzed with a standard debugger like `rust-gdb` or `rust-lldb`.\n\n\u003e [!TIP]\n\u003e Use `rustfmt` on the expanded code to improve readability.\n\nYou can generate [Graphviz](https://graphviz.org/) or [Mermaid](https://mermaid.js.org/) graphs by setting `HERRING_DEBUG` to either `graphviz` or `mermaid` during the execution of the procedural macro.\nThis generates a file for the NFA (`EnumName_nfa.{dot,mmd}`), the subset construction DFA (`EnumName_dfa.{dot,mmd}`), and the minimized DFA (`EnumName_min.{dot,mmd}`) in the specified format.\nGraphviz is useful when debugging locally with tools like [`xdot`](https://github.com/jrfonseca/xdot.py).\nMermaid is useful for directly embedding graphs in Github issues.\n\nSetting `HERRING_DEBUG` to `log` makes the lexer write all visited states to stderr.\n\n\u003e [!NOTE]\n\u003e When changing the `HERRING_DEBUG` environment variable you have to make sure that the build of the lexer is not skipped by `cargo build`.\n\u003e If you made no changes since the last build you can safe the containing file without any changes to trigger a rebuild.\n\n### JSON Example\n#### NFA\n```mermaid\nflowchart LR\nstyle start fill:#FFFFFF00, stroke:#FFFFFF00\nstart--\u003e0;\n0@{shape: circ}\n0 -- \"ε\" --\u003e 1\n0 -- \"ε\" --\u003e 3\n0 -- \"ε\" --\u003e 8\n0 -- \"ε\" --\u003e 14\n0 -- \"ε\" --\u003e 19\n0 -- \"ε\" --\u003e 21\n0 -- \"ε\" --\u003e 23\n0 -- \"ε\" --\u003e 25\n0 -- \"ε\" --\u003e 27\n0 -- \"ε\" --\u003e 29\n0 -- \"ε\" --\u003e 31\n0 -- \"ε\" --\u003e 33\n1@{shape: circ}\n1 -- \"{0x9-0xA, 0xD, 0x20}\" --\u003e 2\n2@{shape: dbl-circ}\n2 -- \"ε\" --\u003e 1\n3@{shape: circ}\n3 -- \"{'t'}\" --\u003e 4\n4@{shape: circ}\n4 -- \"{'r'}\" --\u003e 5\n5@{shape: circ}\n5 -- \"{'u'}\" --\u003e 6\n6@{shape: circ}\n6 -- \"{'e'}\" --\u003e 7\n7@{shape: dbl-circ}\n8@{shape: circ}\n8 -- \"{'f'}\" --\u003e 9\n9@{shape: circ}\n9 -- \"{'a'}\" --\u003e 10\n10@{shape: circ}\n10 -- \"{'l'}\" --\u003e 11\n11@{shape: circ}\n11 -- \"{'s'}\" --\u003e 12\n12@{shape: circ}\n12 -- \"{'e'}\" --\u003e 13\n13@{shape: dbl-circ}\n14@{shape: circ}\n14 -- \"{'n'}\" --\u003e 15\n15@{shape: circ}\n15 -- \"{'u'}\" --\u003e 16\n16@{shape: circ}\n16 -- \"{'l'}\" --\u003e 17\n17@{shape: circ}\n17 -- \"{'l'}\" --\u003e 18\n18@{shape: dbl-circ}\n19@{shape: circ}\n19 -- \"{'{'}\" --\u003e 20\n20@{shape: dbl-circ}\n21@{shape: circ}\n21 -- \"{'}'}\" --\u003e 22\n22@{shape: dbl-circ}\n23@{shape: circ}\n23 -- \"{'['}\" --\u003e 24\n24@{shape: dbl-circ}\n25@{shape: circ}\n25 -- \"{']'}\" --\u003e 26\n26@{shape: dbl-circ}\n27@{shape: circ}\n27 -- \"{','}\" --\u003e 28\n28@{shape: dbl-circ}\n29@{shape: circ}\n29 -- \"{':'}\" --\u003e 30\n30@{shape: dbl-circ}\n31@{shape: circ}\n31 -- \"{'#34;'}\" --\u003e 32\n32@{shape: dbl-circ}\n33@{shape: circ}\n33 -- \"{'-'}\" --\u003e 34\n33 -- \"ε\" --\u003e 34\n34@{shape: circ}\n34 -- \"ε\" --\u003e 35\n35@{shape: circ}\n35 -- \"ε\" --\u003e 36\n35 -- \"ε\" --\u003e 38\n36@{shape: circ}\n36 -- \"{'0'}\" --\u003e 37\n37@{shape: circ}\n37 -- \"ε\" --\u003e 44\n38@{shape: circ}\n38 -- \"{'1'-'9'}\" --\u003e 39\n39@{shape: circ}\n39 -- \"ε\" --\u003e 40\n40@{shape: circ}\n40 -- \"ε\" --\u003e 41\n40 -- \"ε\" --\u003e 43\n41@{shape: circ}\n41 -- \"{'0'-'9'}\" --\u003e 42\n42@{shape: circ}\n42 -- \"ε\" --\u003e 41\n42 -- \"ε\" --\u003e 43\n43@{shape: circ}\n43 -- \"ε\" --\u003e 44\n44@{shape: circ}\n44 -- \"ε\" --\u003e 45\n45@{shape: circ}\n45 -- \"{'.'}\" --\u003e 46\n45 -- \"ε\" --\u003e 48\n46@{shape: circ}\n46 -- \"ε\" --\u003e 47\n47@{shape: circ}\n47 -- \"{'0'-'9'}\" --\u003e 48\n48@{shape: circ}\n48 -- \"ε\" --\u003e 47\n48 -- \"ε\" --\u003e 49\n49@{shape: circ}\n49 -- \"{'E', 'e'}\" --\u003e 50\n49 -- \"ε\" --\u003e 54\n50@{shape: circ}\n50 -- \"ε\" --\u003e 51\n51@{shape: circ}\n51 -- \"{'+', '-'}\" --\u003e 52\n51 -- \"ε\" --\u003e 52\n52@{shape: circ}\n52 -- \"ε\" --\u003e 53\n53@{shape: circ}\n53 -- \"{'0'-'9'}\" --\u003e 54\n54@{shape: dbl-circ}\n54 -- \"ε\" --\u003e 53\nString_0[String]@{shape: rect}\n32 .-\u003e String_0\nColon_0[Colon]@{shape: rect}\n30 .-\u003e Colon_0\nNumber_0[Number]@{shape: rect}\n54 .-\u003e Number_0\nLBrace_0[LBrace]@{shape: rect}\n20 .-\u003e LBrace_0\nLBrak_0[LBrak]@{shape: rect}\n24 .-\u003e LBrak_0\nRBrak_0[RBrak]@{shape: rect}\n26 .-\u003e RBrak_0\nNull_0[Null]@{shape: rect}\n18 .-\u003e Null_0\nFalse_0[False]@{shape: rect}\n13 .-\u003e False_0\nTrue_0[True]@{shape: rect}\n7 .-\u003e True_0\nWhitespace_0[Whitespace]@{shape: rect}\n2 .-\u003e Whitespace_0\nRBrace_0[RBrace]@{shape: rect}\n22 .-\u003e RBrace_0\nComma_0[Comma]@{shape: rect}\n28 .-\u003e Comma_0\n```\n\n#### Subset Construction DFA\n```mermaid\nflowchart LR\nstyle start fill:#FFFFFF00, stroke:#FFFFFF00\nstart--\u003e0;\n0@{shape: circ}\n0 -- \"{0x9-0xA, 0xD, 0x20}\" --\u003e 1\n0 -- \"{'#34;'}\" --\u003e 2\n0 -- \"{','}\" --\u003e 3\n0 -- \"{'-'}\" --\u003e 4\n0 -- \"{'0'}\" --\u003e 5\n0 -- \"{'1'-'9'}\" --\u003e 6\n0 -- \"{':'}\" --\u003e 7\n0 -- \"{'['}\" --\u003e 8\n0 -- \"{']'}\" --\u003e 9\n0 -- \"{'f'}\" --\u003e 10\n0 -- \"{'n'}\" --\u003e 11\n0 -- \"{'t'}\" --\u003e 12\n0 -- \"{'{'}\" --\u003e 13\n0 -- \"{'}'}\" --\u003e 14\n1@{shape: dbl-circ}\n1 -- \"{0x9-0xA, 0xD, 0x20}\" --\u003e 1\n2@{shape: dbl-circ}\n3@{shape: dbl-circ}\n4@{shape: circ}\n4 -- \"{'0'}\" --\u003e 5\n4 -- \"{'1'-'9'}\" --\u003e 6\n5@{shape: dbl-circ}\n5 -- \"{'.'}\" --\u003e 25\n5 -- \"{'0'-'9'}\" --\u003e 30\n5 -- \"{'E', 'e'}\" --\u003e 27\n6@{shape: dbl-circ}\n6 -- \"{'.'}\" --\u003e 25\n6 -- \"{'0'-'9'}\" --\u003e 26\n6 -- \"{'E', 'e'}\" --\u003e 27\n7@{shape: dbl-circ}\n8@{shape: dbl-circ}\n9@{shape: dbl-circ}\n10@{shape: circ}\n10 -- \"{'a'}\" --\u003e 21\n11@{shape: circ}\n11 -- \"{'u'}\" --\u003e 18\n12@{shape: circ}\n12 -- \"{'r'}\" --\u003e 15\n13@{shape: dbl-circ}\n14@{shape: dbl-circ}\n15@{shape: circ}\n15 -- \"{'u'}\" --\u003e 16\n16@{shape: circ}\n16 -- \"{'e'}\" --\u003e 17\n17@{shape: dbl-circ}\n18@{shape: circ}\n18 -- \"{'l'}\" --\u003e 19\n19@{shape: circ}\n19 -- \"{'l'}\" --\u003e 20\n20@{shape: dbl-circ}\n21@{shape: circ}\n21 -- \"{'l'}\" --\u003e 22\n22@{shape: circ}\n22 -- \"{'s'}\" --\u003e 23\n23@{shape: circ}\n23 -- \"{'e'}\" --\u003e 24\n24@{shape: dbl-circ}\n25@{shape: circ}\n25 -- \"{'0'-'9'}\" --\u003e 30\n26@{shape: dbl-circ}\n26 -- \"{'.'}\" --\u003e 25\n26 -- \"{'0'-'9'}\" --\u003e 26\n26 -- \"{'E', 'e'}\" --\u003e 27\n27@{shape: circ}\n27 -- \"{'+', '-'}\" --\u003e 28\n27 -- \"{'0'-'9'}\" --\u003e 29\n28@{shape: circ}\n28 -- \"{'0'-'9'}\" --\u003e 29\n29@{shape: dbl-circ}\n29 -- \"{'0'-'9'}\" --\u003e 29\n30@{shape: dbl-circ}\n30 -- \"{'0'-'9'}\" --\u003e 30\n30 -- \"{'E', 'e'}\" --\u003e 27\nLBrak_0[LBrak]@{shape: rect}\n8 .-\u003e LBrak_0\nString_0[String]@{shape: rect}\n2 .-\u003e String_0\nNumber_0[Number]@{shape: rect}\n30 .-\u003e Number_0\nColon_0[Colon]@{shape: rect}\n7 .-\u003e Colon_0\nNumber_0[Number]@{shape: rect}\n6 .-\u003e Number_0\nTrue_0[True]@{shape: rect}\n17 .-\u003e True_0\nNull_0[Null]@{shape: rect}\n20 .-\u003e Null_0\nFalse_0[False]@{shape: rect}\n24 .-\u003e False_0\nNumber_0[Number]@{shape: rect}\n5 .-\u003e Number_0\nNumber_0[Number]@{shape: rect}\n29 .-\u003e Number_0\nWhitespace_0[Whitespace]@{shape: rect}\n1 .-\u003e Whitespace_0\nRBrak_0[RBrak]@{shape: rect}\n9 .-\u003e RBrak_0\nNumber_0[Number]@{shape: rect}\n26 .-\u003e Number_0\nRBrace_0[RBrace]@{shape: rect}\n14 .-\u003e RBrace_0\nComma_0[Comma]@{shape: rect}\n3 .-\u003e Comma_0\nLBrace_0[LBrace]@{shape: rect}\n13 .-\u003e LBrace_0\n```\n\n#### Minimized DFA\n```mermaid\nflowchart LR\nstyle start fill:#FFFFFF00, stroke:#FFFFFF00\nstart--\u003e0;\n0@{shape: circ}\n0 -- \"{0x9-0xA, 0xD, 0x20}\" --\u003e 1\n0 -- \"{'#34;'}\" --\u003e 2\n0 -- \"{','}\" --\u003e 3\n0 -- \"{'-'}\" --\u003e 4\n0 -- \"{'0'}\" --\u003e 5\n0 -- \"{'1'-'9'}\" --\u003e 6\n0 -- \"{':'}\" --\u003e 7\n0 -- \"{'['}\" --\u003e 8\n0 -- \"{']'}\" --\u003e 9\n0 -- \"{'f'}\" --\u003e 10\n0 -- \"{'n'}\" --\u003e 11\n0 -- \"{'t'}\" --\u003e 12\n0 -- \"{'{'}\" --\u003e 13\n0 -- \"{'}'}\" --\u003e 14\n1@{shape: dbl-circ}\n1 -- \"{0x9-0xA, 0xD, 0x20}\" --\u003e 1\n2@{shape: dbl-circ}\n3@{shape: dbl-circ}\n4@{shape: circ}\n4 -- \"{'0'}\" --\u003e 5\n4 -- \"{'1'-'9'}\" --\u003e 6\n5@{shape: dbl-circ}\n5 -- \"{'.'}\" --\u003e 25\n5 -- \"{'0'-'9'}\" --\u003e 29\n5 -- \"{'E', 'e'}\" --\u003e 26\n6@{shape: dbl-circ}\n6 -- \"{'.'}\" --\u003e 25\n6 -- \"{'0'-'9'}\" --\u003e 6\n6 -- \"{'E', 'e'}\" --\u003e 26\n7@{shape: dbl-circ}\n8@{shape: dbl-circ}\n9@{shape: dbl-circ}\n10@{shape: circ}\n10 -- \"{'a'}\" --\u003e 21\n11@{shape: circ}\n11 -- \"{'u'}\" --\u003e 18\n12@{shape: circ}\n12 -- \"{'r'}\" --\u003e 15\n13@{shape: dbl-circ}\n14@{shape: dbl-circ}\n15@{shape: circ}\n15 -- \"{'u'}\" --\u003e 16\n16@{shape: circ}\n16 -- \"{'e'}\" --\u003e 17\n17@{shape: dbl-circ}\n18@{shape: circ}\n18 -- \"{'l'}\" --\u003e 19\n19@{shape: circ}\n19 -- \"{'l'}\" --\u003e 20\n20@{shape: dbl-circ}\n21@{shape: circ}\n21 -- \"{'l'}\" --\u003e 22\n22@{shape: circ}\n22 -- \"{'s'}\" --\u003e 23\n23@{shape: circ}\n23 -- \"{'e'}\" --\u003e 24\n24@{shape: dbl-circ}\n25@{shape: circ}\n25 -- \"{'0'-'9'}\" --\u003e 29\n26@{shape: circ}\n26 -- \"{'+', '-'}\" --\u003e 27\n26 -- \"{'0'-'9'}\" --\u003e 28\n27@{shape: circ}\n27 -- \"{'0'-'9'}\" --\u003e 28\n28@{shape: dbl-circ}\n28 -- \"{'0'-'9'}\" --\u003e 28\n29@{shape: dbl-circ}\n29 -- \"{'0'-'9'}\" --\u003e 29\n29 -- \"{'E', 'e'}\" --\u003e 26\nFalse_0[False]@{shape: rect}\n24 .-\u003e False_0\nWhitespace_0[Whitespace]@{shape: rect}\n1 .-\u003e Whitespace_0\nNumber_0[Number]@{shape: rect}\n6 .-\u003e Number_0\nNumber_0[Number]@{shape: rect}\n29 .-\u003e Number_0\nLBrace_0[LBrace]@{shape: rect}\n13 .-\u003e LBrace_0\nNumber_0[Number]@{shape: rect}\n5 .-\u003e Number_0\nRBrace_0[RBrace]@{shape: rect}\n14 .-\u003e RBrace_0\nString_0[String]@{shape: rect}\n2 .-\u003e String_0\nColon_0[Colon]@{shape: rect}\n7 .-\u003e Colon_0\nRBrak_0[RBrak]@{shape: rect}\n9 .-\u003e RBrak_0\nTrue_0[True]@{shape: rect}\n17 .-\u003e True_0\nNull_0[Null]@{shape: rect}\n20 .-\u003e Null_0\nLBrak_0[LBrak]@{shape: rect}\n8 .-\u003e LBrak_0\nNumber_0[Number]@{shape: rect}\n28 .-\u003e Number_0\nComma_0[Comma]@{shape: rect}\n3 .-\u003e Comma_0\n```\n\n## License\nHerring is licensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x2a-42%2Fherring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x2a-42%2Fherring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x2a-42%2Fherring/lists"}