Clean up project imports
This commit is contained in:
parent
a5a35b6d8c
commit
d32061ebba
@ -2,7 +2,7 @@
|
|||||||
use annotate_snippets::{Level, Renderer, Snippet};
|
use annotate_snippets::{Level, Renderer, Snippet};
|
||||||
use std::fmt::Display;
|
use std::fmt::Display;
|
||||||
|
|
||||||
use crate::{ast::Span, AnalysisError, ContextError, LexError, ParseError, RuntimeError};
|
use crate::{Span, AnalysisError, ContextError, LexError, ParseError, RuntimeError};
|
||||||
|
|
||||||
/// An error that occurred during the execution of the Dust language and its
|
/// An error that occurred during the execution of the Dust language and its
|
||||||
/// corresponding source code.
|
/// corresponding source code.
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
//! - [`Lexer`], which lexes the input a token at a time
|
//! - [`Lexer`], which lexes the input a token at a time
|
||||||
use std::fmt::{self, Display, Formatter};
|
use std::fmt::{self, Display, Formatter};
|
||||||
|
|
||||||
use crate::{ast::Span, Token};
|
use crate::{Span, Token};
|
||||||
|
|
||||||
/// Lexes the input and return a vector of tokens and their positions.
|
/// Lexes the input and return a vector of tokens and their positions.
|
||||||
///
|
///
|
||||||
|
@ -34,7 +34,7 @@ pub mod vm;
|
|||||||
pub use analyzer::{analyze, AnalysisError, Analyzer};
|
pub use analyzer::{analyze, AnalysisError, Analyzer};
|
||||||
pub use ast::{AbstractSyntaxTree, AstError, Expression, Node, Span, Statement};
|
pub use ast::{AbstractSyntaxTree, AstError, Expression, Node, Span, Statement};
|
||||||
pub use built_in_function::{BuiltInFunction, BuiltInFunctionError};
|
pub use built_in_function::{BuiltInFunction, BuiltInFunctionError};
|
||||||
pub use constructor::Constructor;
|
pub use constructor::{ConstructError, Constructor};
|
||||||
pub use context::{Context, ContextData, ContextError};
|
pub use context::{Context, ContextData, ContextError};
|
||||||
pub use core_library::core_library;
|
pub use core_library::core_library;
|
||||||
pub use dust_error::DustError;
|
pub use dust_error::DustError;
|
||||||
|
@ -17,7 +17,7 @@ use std::{
|
|||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::{constructor::Constructor, BuiltInFunction, Identifier};
|
use crate::{Constructor, BuiltInFunction, Identifier};
|
||||||
|
|
||||||
/// Description of a kind of value.
|
/// Description of a kind of value.
|
||||||
///
|
///
|
||||||
|
@ -20,10 +20,9 @@ use crate::{
|
|||||||
OperatorExpression, PrimitiveValueExpression, RangeExpression, Span, Statement,
|
OperatorExpression, PrimitiveValueExpression, RangeExpression, Span, Statement,
|
||||||
StructDefinition, StructExpression,
|
StructDefinition, StructExpression,
|
||||||
},
|
},
|
||||||
constructor::ConstructError,
|
parse, Analyzer, BuiltInFunctionError, ConstructError, Context, ContextData, ContextError,
|
||||||
parse, Analyzer, BuiltInFunctionError, Context, ContextData, ContextError, DustError,
|
DustError, Evaluation, Expression, Function, FunctionCallError, Identifier, ParseError,
|
||||||
Evaluation, Expression, Function, FunctionCallError, Identifier, ParseError, StructType, Type,
|
StructType, Type, Value, ValueData, ValueError,
|
||||||
Value, ValueData, ValueError,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Run the source code and return the result.
|
/// Run the source code and return the result.
|
||||||
|
Loading…
Reference in New Issue
Block a user