diff --git a/work/book/src/semantics/code-diagnostics.md b/work/book/src/semantics/code-diagnostics.md index 8649913..efd2be5 100644 --- a/work/book/src/semantics/code-diagnostics.md +++ b/work/book/src/semantics/code-diagnostics.md @@ -64,7 +64,6 @@ function to retrieve a copy of the current diagnostics sets, you can leverage the version number of the attribute value to determine whether this set needs to be republished to the client. -[^syntaxerror]: -The [Document::errors](https://docs.rs/lady-deirdre/2.0.0/lady_deirdre/syntax/trait.SyntaxTree.html#method.errors) +[^syntaxerror]: The [Document::errors](https://docs.rs/lady-deirdre/2.0.0/lady_deirdre/syntax/trait.SyntaxTree.html#method.errors) function would provide you with an iterator over all syntax errors within the compilation unit. diff --git a/work/crates/main/src/analysis/grammar.rs b/work/crates/main/src/analysis/grammar.rs index f2dc44a..a02e8d4 100644 --- a/work/crates/main/src/analysis/grammar.rs +++ b/work/crates/main/src/analysis/grammar.rs @@ -71,6 +71,9 @@ use crate::{ /// The [Node] supertrait of this trait provides lexical and syntax components /// of the programming language. The rest of the trait's API related to the /// semantics description. +/// +/// **NOTE**: This trait API is not stabilized yet. New trait members may be +/// added in future minor versions of Lady Deirdre. pub trait Grammar: Node + AbstractFeature { /// A syntax tree node classifier that indexes the nodes by classes. ///