blueprint_starlark_syntax/
lib.rs

1/*
2 * Copyright 2019 The Starlark in Rust Authors.
3 * Copyright (c) Facebook, Inc. and its affiliates.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *     https://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18//! Starlark AST.
19
20#![allow(clippy::comparison_chain)]
21#![allow(clippy::comparison_to_empty)]
22#![allow(clippy::len_without_is_empty)]
23#![allow(clippy::needless_lifetimes)]
24#![allow(clippy::new_ret_no_self)]
25#![allow(clippy::should_implement_trait)]
26
27pub use crate::error::Error;
28pub use crate::error::ErrorKind;
29pub use crate::error::StarlarkResultExt;
30
31pub type Result<T> = std::result::Result<T, Error>;
32
33pub mod call_stack;
34pub mod codemap;
35pub mod convert_indices;
36pub(crate) mod cursors;
37pub mod diagnostic;
38pub mod dialect;
39pub mod dot_format_parser;
40pub mod error;
41pub mod eval_exception;
42pub mod fast_string;
43pub mod frame;
44pub mod golden_test_template;
45pub mod lexer;
46#[cfg(test)]
47mod lexer_tests;
48pub mod slice_vec_ext;
49pub mod span_display;
50pub mod syntax;