Releases: LukasKalbertodt/litrs
Releases · LukasKalbertodt/litrs
v0.4.1
v0.4.0
Added
- Add ability to parse literals with arbitrary suffixes (e.g.
"foo"bla
or23px
) - Add
suffix()
method to all literal types exceptBoolLit
- Add
IntegerBase::value
- Add
from_suffix
andsuffix
methods toFloatType
andIntegerType
- Add
FromStr
andDisplay
impls toFloatType
andIntegerType
Changed
- Breaking: Mark
FloatType
andIntegerType
as#[non_exhaustive]
- Breaking: Fix integer parsing for cases like
27f32
.Literal::parse
andIntegerLit::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 inFloatLit::parse
. - Improved some parts of the docs
Removed
- Breaking: Remove
OwnedLiteral
andSharedLiteral
v0.3.0
Breaking
- Bump MSRV (minimal supported Rust version) to 1.54
Added
- Add
raw_input
andinto_raw_input
to non-bool*Lit
types - Add
impl From<*Lit> for pm::Literal
(for non-bool literals) - Add
impl From<BoolLit> for pm::Ident
Fixed
- Fix link to reference and clarify bool literals (#7)
Internals
- Move lots of parsing code into non-generic functions (this hopefully reduces compile times)
- To implement
[into_]raw_input
for integer and float literals, their
internals were changed a bit so that they store the full input string now.
v0.2.3
See CHANGELOG.md
v0.2.2
See CHANGELOG.md
v0.2.1
See CHANGELOG.md
v0.2.0
See CHANGELOG.md
v0.1.1
See CHANGELOG.md
v0.1.0
See CHANGELOG.md