From a93b1ab003affb0d72e9da4007b04a2a6cfd4462 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 6 Jan 2020 12:50:20 +0100 Subject: =?UTF-8?q?Formatting=20=F0=9F=9B=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/mod.rs | 1 + src/syntax/parsing.rs | 1 + src/syntax/span.rs | 1 + src/syntax/tokens.rs | 1 + 4 files changed, 4 insertions(+) (limited to 'src/syntax') diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index 193810c0..cb801627 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -10,6 +10,7 @@ pub_use_mod!(tokens); pub_use_mod!(parsing); pub_use_mod!(span); + /// A logical unit of the incoming text stream. #[derive(Debug, Copy, Clone, Eq, PartialEq)] pub enum Token<'s> { diff --git a/src/syntax/parsing.rs b/src/syntax/parsing.rs index 6eed2235..2f061372 100644 --- a/src/syntax/parsing.rs +++ b/src/syntax/parsing.rs @@ -4,6 +4,7 @@ use crate::func::Scope; use crate::size::Size; use super::*; + /// The result type for parsing. pub type ParseResult = crate::TypesetResult; diff --git a/src/syntax/span.rs b/src/syntax/span.rs index 9e018437..3f752385 100644 --- a/src/syntax/span.rs +++ b/src/syntax/span.rs @@ -2,6 +2,7 @@ use std::fmt::{self, Display, Formatter}; + /// Annotates a value with the part of the source code it corresponds to. #[derive(Copy, Clone, Eq, PartialEq)] pub struct Spanned { diff --git a/src/syntax/tokens.rs b/src/syntax/tokens.rs index 85e89be4..f5854d8f 100644 --- a/src/syntax/tokens.rs +++ b/src/syntax/tokens.rs @@ -5,6 +5,7 @@ use smallvec::SmallVec; use super::*; + /// Builds an iterator over the tokens of the source code. pub fn tokenize(src: &str) -> Tokens { Tokens::new(src) -- cgit v1.2.3