Skip to content

Commit

Permalink
CI Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zesterer committed Sep 1, 2024
1 parent c41b720 commit 0969378
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
toolchain: "1.65"
components: rustfmt, clippy
- name: Check MSRV compatibility
run: cargo check --tests --verbose --features _test_stable
run: cargo check --verbose --features _test_stable
semver:
name: SemVer
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ either = { version = "1.8.1", optional = true }
serde = { version = "1.0", default-features = false, optional = true, features = ["derive"] }
unicode-ident = "1.0.10"

[build-dependencies]
vergen-gix = { version = "1.0", optional = true, features = ["emit_and_set"] }

[dev-dependencies]
ariadne = "0.2"
pom = "3.2"
Expand All @@ -96,9 +99,6 @@ logos = "0.13"
lasso = "0.7"
slotmap = "1.0"

[build-dependencies]
vergen-gix = { version = "1.0", optional = true, features = ["emit_and_set"] }

[target.'cfg(unix)'.dev-dependencies]
pprof = { version = "0.11", features = ["flamegraph", "criterion"] }

Expand Down
2 changes: 1 addition & 1 deletion README2.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ See [`examples/brainfuck.rs`](https://github.com/zesterer/chumsky/blob/master/ex
[Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) interpreter
(`cargo run --example brainfuck -- examples/sample.bf`).

```rust
```rust,ignore
use chumsky::prelude::*;
/// An AST (Abstract Syntax Tree) for Brainfuck instructions
Expand Down
6 changes: 3 additions & 3 deletions benches/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ mod nom {

mod winnow {
use winnow::{
ascii::{digit0, digit1, escaped},
ascii::{digit0, digit1, take_escaped},
combinator::separated,
combinator::{alt, dispatch},
combinator::{cut_err, fail, opt, peek},
Expand Down Expand Up @@ -382,7 +382,7 @@ mod winnow {
cut_err(digit1),
)),
)
.recognize()
.take()
.map(|bytes| str::from_utf8(bytes).unwrap().parse::<f64>().unwrap())
.parse_next(i)
}
Expand All @@ -391,7 +391,7 @@ mod winnow {
preceded(
'"',
cut_err(terminated(
escaped(
take_escaped(
none_of([b'\\', b'"']),
'\\',
one_of([b'\\', b'/', b'"', b'b', b'f', b'n', b'r', b't']),
Expand Down
1 change: 1 addition & 0 deletions src/extra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type DefaultState = ();
type DefaultCtx = ();

/// A trait for extra types on a [`Parser`] that control the behavior of certain combinators and output.
///
/// Currently, this consists of the error type emitted, the state type used in the `*_state` combinators,
/// and the context type used in the `*_ctx` and `*configure` parsers.
///
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2175,7 +2175,9 @@ where
go_extra!(O);
}

/// A [`Parser`] that can be configured with runtime context. This allows for context-sensitive parsing
/// A [`Parser`] that can be configured with runtime context.
///
/// This allows for context-sensitive parsing
/// of input. Note that chumsky only supports 'left'-sensitive parsing, where the context for a parser
/// is derived from earlier in the input.
///
Expand Down
7 changes: 4 additions & 3 deletions src/primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,10 @@ where
go_extra!(O);
}

/// Apply a mapping function to the context of this parser. Note that this combinator will
/// behave differently from all other maps, in terms of which parsers it effects - while
/// other maps apply to the output of the parser, and thus read left-to-right, this one
/// Apply a mapping function to the context of this parser.
///
/// Note that this combinator will behave differently from all other maps, in terms of which
/// parsers it effects - while other maps apply to the output of the parser, and thus read left-to-right, this one
/// applies to the _input_ of the parser, and as such applies right-to-left.
///
/// More technically, if all combinators form a 'tree' of parsers, where each node executes
Expand Down

0 comments on commit 0969378

Please sign in to comment.