From 17f525ff37309d884641b3b57affe0d9a0cf5521 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 3 Jul 2023 15:51:47 -0500 Subject: [PATCH] docs(topic): Link out to relevant builtin parsers Inspired by #272 --- src/_topic/language.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/_topic/language.rs b/src/_topic/language.rs index 7bb83cdb..29a4ff87 100644 --- a/src/_topic/language.rs +++ b/src/_topic/language.rs @@ -136,6 +136,8 @@ #![doc = include_str!("../../examples/string/parser.rs")] //! ``` //! +//! See also [`escaped`] and [`escaped_transform`]. +//! //! ### Integers //! //! The following recipes all return string slices rather than integer values. How to obtain an @@ -194,6 +196,8 @@ //! } //! ``` //! +//! See also [`hex_uint`] +//! //! #### Octal //! //! ```rust @@ -258,6 +262,8 @@ //! } //! ``` //! +//! See also [`dec_uint`] and [`dec_int`] +//! //! ### Floating Point Numbers //! //! The following is adapted from [the Python parser by Valentin Lorentz](https://github.com/ProgVal/rust-python-parser/blob/master/src/numbers.rs). @@ -313,3 +319,13 @@ //! .parse_next(input) //! } //! ``` +//! +//! See also [`float`] + +#![allow(unused_imports)] +use crate::ascii::dec_int; +use crate::ascii::dec_uint; +use crate::ascii::escaped; +use crate::ascii::escaped_transform; +use crate::ascii::float; +use crate::ascii::hex_uint;