Skip to content

yash-syntax-0.8.0

Compare
Choose a tag to compare
@magicant magicant released this 08 Apr 16:11
· 601 commits to master since this release
yash-syntax-0.8.0

[0.8.0] - 2024-04-09

Starting from this version, the yash-syntax crate can be compiled on non-Unix platforms, where RawFd falls back to i32.

Added

  • source::Source::Eval
  • source::Source::DotScript
  • source::pretty::Footer
  • source::pretty::Message::footers
  • source::pretty::MessageBase::footers
  • parser::lex::Keyword::as_str
  • parser::lex::ParseKeywordError
  • impl FromStr for parser::lex::Keyword
  • parser::lex::Operator::as_str
  • parser::lex::ParseOperatorError
  • parser::lex::TryFromOperatorError

Changed

  • parser::lex::Keyword::is_clause_delimiter now const and #[must_use]
  • parser::lex::Operator::is_clause_delimiter now const and #[must_use]
  • <parser::lex::Operator as FromStr>::Err from () to ParseOperatorError
  • <syntax::AndOr as FromStr>::Err from () to ParseOperatorError
  • <syntax::AndOr as TryFrom<parser::lex::Operator>>::Error from () to TryFromOperatorError
  • <syntax::RedirOp as FromStr>::Err from () to ParseOperatorError
  • <syntax::RedirOp as TryFrom<parser::lex::Operator>>::Error from () to TryFromOperatorError

Removed

  • impl TryFrom<&str> for parser::lex::Keyword in favor of FromStr

New Contributors

  • @kpcyrd made their first contribution in #357 (Make yash-syntax compile on windows/wasm/embedded)