Skip to content

v0.4.0

Compare
Choose a tag to compare
@LukasKalbertodt LukasKalbertodt released this 05 Mar 17:34
· 3 commits to main since this release
458d6e1

Added

  • Add ability to parse literals with arbitrary suffixes (e.g. "foo"bla or 23px)
  • Add suffix() method to all literal types except BoolLit
  • Add IntegerBase::value
  • Add from_suffix and suffix methods to FloatType and IntegerType
  • Add FromStr and Display impls to FloatType and IntegerType

Changed

  • Breaking: Mark FloatType and IntegerType as #[non_exhaustive]
  • Breaking: Fix integer parsing for cases like 27f32. Literal::parse
    and IntegerLit::parse will both identify this as an integer literal.
  • Breaking: Fix float parsing by correctly rejecting inputs like 27f32. A
    float literal must have a period OR an exponent part, according to the spec.
    Previously decimal integers were accepted in FloatLit::parse.
  • Improved some parts of the docs

Removed

  • Breaking: Remove OwnedLiteral and SharedLiteral