diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-12 22:19:38 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-12 22:19:38 +0100 |
| commit | ff107cf3e75acf041f8b7631337d299cdeaa1685 (patch) | |
| tree | 40799f0337a5c2bc13166ff32a1f0b4f5c23bfe8 /src/syntax/parsing.rs | |
| parent | 3c0496bb6104f0e2a60520e42137ecc29f26e9fa (diff) | |
Tidying up 🧹
Diffstat (limited to 'src/syntax/parsing.rs')
| -rw-r--r-- | src/syntax/parsing.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/syntax/parsing.rs b/src/syntax/parsing.rs index 9fe6c584..d887d898 100644 --- a/src/syntax/parsing.rs +++ b/src/syntax/parsing.rs @@ -1,10 +1,12 @@ //! Parsing of token streams into syntax trees. -use crate::TypesetResult; use crate::func::Scope; use crate::size::Size; use super::*; +/// The result type for parsing. +pub type ParseResult<T> = crate::TypesetResult<T>; + /// Parses source code into a syntax tree given a context. pub fn parse(src: &str, ctx: ParseContext) -> ParseResult<SyntaxTree> { Parser::new(src, ctx).parse() @@ -404,9 +406,6 @@ impl<'s> Iterator for PeekableTokens<'s> { } } -/// The result type for parsing. -pub type ParseResult<T> = TypesetResult<T>; - #[cfg(test)] #[allow(non_snake_case)] |
