-
-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: start working on yaml support (#2428)
Co-authored-by: Emanuele Stoppa <[email protected]> Co-authored-by: Maikel <[email protected]>
- Loading branch information
1 parent
838ccb4
commit c9a9001
Showing
27 changed files
with
1,729 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[package] | ||
authors.workspace = true | ||
categories.workspace = true | ||
description = "Utilities to create YAML AST for biome_yaml_parser" | ||
edition.workspace = true | ||
homepage.workspace = true | ||
keywords.workspace = true | ||
license.workspace = true | ||
name = "biome_yaml_factory" | ||
repository.workspace = true | ||
version = "0.0.1" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
biome_rowan = { workspace = true } | ||
biome_yaml_syntax = { workspace = true } | ||
|
||
[lints] | ||
workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#[rustfmt::skip] | ||
pub(super) mod syntax_factory; | ||
#[rustfmt::skip] | ||
pub mod node_factory; | ||
|
||
pub use syntax_factory::YamlSyntaxFactory; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
119 changes: 119 additions & 0 deletions
119
crates/biome_yaml_factory/src/generated/syntax_factory.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use biome_rowan::TreeBuilder; | ||
use biome_yaml_syntax::YamlLanguage; | ||
|
||
mod generated; | ||
pub mod make; | ||
pub use crate::generated::YamlSyntaxFactory; | ||
|
||
// Re-exported for tests | ||
#[doc(hidden)] | ||
pub use biome_yaml_syntax as syntax; | ||
|
||
pub type YamlSyntaxTreeBuilder = TreeBuilder<'static, YamlLanguage, YamlSyntaxFactory>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub use crate::generated::node_factory::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[package] | ||
authors.workspace = true | ||
categories.workspace = true | ||
description = "Biome's YAML parser" | ||
edition.workspace = true | ||
homepage.workspace = true | ||
keywords.workspace = true | ||
license.workspace = true | ||
name = "biome_yaml_parser" | ||
repository.workspace = true | ||
version = "0.0.1" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
biome_console = { workspace = true } | ||
biome_diagnostics = { workspace = true } | ||
biome_parser = { workspace = true } | ||
biome_rowan = { workspace = true } | ||
biome_unicode_table = { workspace = true } | ||
biome_yaml_factory = { workspace = true } | ||
biome_yaml_syntax = { workspace = true } | ||
tracing = { workspace = true } | ||
|
||
|
||
[dev-dependencies] | ||
biome_test_utils = { path = "../biome_test_utils" } | ||
insta = { workspace = true } | ||
quickcheck = { workspace = true } | ||
quickcheck_macros = { workspace = true } | ||
tests_macros = { path = "../tests_macros" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<p align="center"> | ||
<img alt="Biome - Toolchain of the web" width="400" src="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg"/> | ||
</p> | ||
|
||
<div align="center"> | ||
|
||
[![Discord chat][discord-badge]][discord-url] | ||
[![cargo version][cargo-badge]][cargo-url] | ||
|
||
[discord-badge]: https://badgen.net/discord/online-members/BypW39g6Yc?icon=discord&label=discord&color=green | ||
[discord-url]: https://discord.gg/BypW39g6Yc | ||
[cargo-badge]: https://badgen.net/crates/v/biome_yaml_parser?&color=green | ||
[cargo-url]: https://crates.io/crates/biome_yaml_parser/ | ||
|
||
</div> | ||
|
||
# `biome_yaml_parser` | ||
|
||
Biome's YAML parser implementation. Follow the [documentation](https://docs.rs/biome_yaml_parser/). |
Oops, something went wrong.