slint/internal/compiler/parser-test-macro
2022-11-28 13:11:11 +00:00
..
Cargo.toml Bump version number to 0.3.3 2022-11-28 13:11:11 +00:00
lib.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
README.md Change the Url from sixtyfps.io to slint-ui.com 2022-02-08 08:52:46 +01:00

parser_test: a proc macro attribute that generate tests for the parser functions

The parser_test macro will look at the documentation of a function for a markdown block delimited by ```test and will feeds each line to the parser function, checking that no error are reported, and that everything was consumed

A parser function must have the signature fn(&mut impl Parser)

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.