Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,24 @@ jobs:
if: matrix.cpp_compiler == 'g++'
run: cargo xtask ci

build-nightly:
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
CXX: g++
steps:
- uses: actions/checkout@v3
- uses: jdx/mise-action@v3
- name: Install Rust nightly
run: |
rustup toolchain install nightly
rustup default nightly
rustup target add wasm32-wasip1
rustup component add rustfmt
- name: Run CI (g++ nightly)
run: cargo xtask ci

build-win:
runs-on: windows-2022
steps:
Expand Down
4 changes: 2 additions & 2 deletions zngur-parser/src/conditional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub trait Matchable: core::fmt::Debug + Clone + PartialEq + Eq {
}

/// a type that can be matched against a Pattern
pub trait MatchableParse<'src>: Matchable {
pub(crate) trait MatchableParse<'src>: Matchable {
/// return a parser for the item as it would appear in an `#if` or `#match` statement
fn parser() -> impl ZngParser<'src, Self>;

Expand All @@ -28,7 +28,7 @@ pub trait MatchPattern: core::fmt::Debug + Clone + PartialEq + Eq {
}

/// a Pattern that can be matched against
pub trait MatchPatternParse<'src>: MatchPattern {
pub(crate) trait MatchPatternParse<'src>: MatchPattern {
/// return a parser for for the pattern
fn parser() -> impl ZngParser<'src, Self>;
}
Expand Down
5 changes: 4 additions & 1 deletion zngur-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ type ZngParserExtra<'a> =
type BoxedZngParser<'a, Item> = chumsky::Boxed<'a, 'a, ParserInput<'a>, Item, ZngParserExtra<'a>>;

/// Effective trait alias for verbose chumsky Parser Trait
trait ZngParser<'a, Item>: Parser<'a, ParserInput<'a>, Item, ZngParserExtra<'a>> + Clone {}
pub(crate) trait ZngParser<'a, Item>:
Parser<'a, ParserInput<'a>, Item, ZngParserExtra<'a>> + Clone
{
}
impl<'a, T, Item> ZngParser<'a, Item> for T where
T: Parser<'a, ParserInput<'a>, Item, ZngParserExtra<'a>> + Clone
{
Expand Down
Loading