diff --git a/scopegraphs/src/concepts/mod.rs b/scopegraphs/src/concepts/mod.rs index 91ba881..4f5907d 100644 --- a/scopegraphs/src/concepts/mod.rs +++ b/scopegraphs/src/concepts/mod.rs @@ -75,7 +75,6 @@ use scopegraphs_render_docs::render_scopegraphs; /// # use completeness::{ImplicitClose}; /// # use resolve::{DataWellformedness, Resolve, ResolvedPath}; /// # use render::{RenderSettings, RenderScopeData, RenderScopeLabel}; -// {tutor name "empty-label"} /// # #[derive(Label, Hash, PartialEq, Eq, Debug, Clone, Copy)] /// # enum Lbl {} /// # @@ -87,12 +86,9 @@ use scopegraphs_render_docs::render_scopegraphs; /// # } /// # } /// # -// {tutor end name } -// {tutor name "empty-data"} /// # #[derive(Hash, PartialEq, Eq, Debug, Clone)] /// # enum Data {} /// # impl RenderScopeData for Data {} -// {tutor end name } /// let storage = Storage::new(); /// /// let sg: ScopeGraph> = ScopeGraph::new(&storage, ImplicitClose::default()); @@ -106,7 +102,6 @@ use scopegraphs_render_docs::render_scopegraphs; /// # use completeness::{ImplicitClose}; /// # use resolve::{DataWellformedness, Resolve, ResolvedPath}; /// # use render::{RenderSettings, RenderScopeData, RenderScopeLabel}; -// {tutor inserted "empty-label"} /// # #[derive(Label, Hash, PartialEq, Eq, Debug, Clone, Copy)] /// # enum Lbl {} /// # @@ -118,12 +113,9 @@ use scopegraphs_render_docs::render_scopegraphs; /// # } /// # } /// # -// {tutor end insert} -// {tutor inserted "empty-data"} /// # #[derive(Hash, PartialEq, Eq, Debug, Clone)] /// # enum Data {} /// # impl RenderScopeData for Data {} -// {tutor end insert} /// type MyScopeGraph<'s> = ScopeGraph<'s, Lbl, Data, ImplicitClose>; /// /// let storage = Storage::new(); @@ -456,7 +448,6 @@ pub mod scope_data {} /// # fn definition(&self) -> bool { /// # matches!(self, Self::Variable {..}) /// # } -// {tutor name "explicit-relabel-global"} /// # fn explicit_relabel(&self, scope_id: usize) -> Option { /// # match scope_id { /// # 0 => Some("global".to_string()), @@ -464,7 +455,6 @@ pub mod scope_data {} /// # _ => None /// # } /// # } -// {tutor end name } /// # } /// # /// # impl RenderScopeLabel for Lbl { @@ -590,7 +580,6 @@ pub mod scope_data {} /// # fn definition(&self) -> bool { /// # matches!(self, Self::Variable {..}) /// # } -// {tutor inserted "explicit-relabel-global"} /// # fn explicit_relabel(&self, scope_id: usize) -> Option { /// # match scope_id { /// # 0 => Some("global".to_string()), @@ -598,7 +587,6 @@ pub mod scope_data {} /// # _ => None /// # } /// # } -// {tutor end insert} /// # } /// # /// # impl RenderScopeLabel for Lbl { @@ -690,7 +678,6 @@ pub mod scope_data {} /// # fn definition(&self) -> bool { /// # matches!(self, Self::Variable {..}) /// # } -// {tutor inserted "explicit-relabel-global"} /// # fn explicit_relabel(&self, scope_id: usize) -> Option { /// # match scope_id { /// # 0 => Some("global".to_string()), @@ -698,7 +685,6 @@ pub mod scope_data {} /// # _ => None /// # } /// # } -// {tutor end insert} /// # } /// # /// # impl RenderScopeLabel for Lbl { diff --git a/scopegraphs/src/examples/mod.rs b/scopegraphs/src/examples/mod.rs index a162ff3..f3d6570 100644 --- a/scopegraphs/src/examples/mod.rs +++ b/scopegraphs/src/examples/mod.rs @@ -8,9 +8,7 @@ pub mod patterns; #[render_scopegraphs] /// An example of a small language with records (structs) and name resolution of fields. /// -// {tutor name "records-example-full"} /// ``` /// # /// ``` -// {tutor end name} pub mod records {} diff --git a/tutor.toml b/tutor.toml deleted file mode 100644 index d40d8b0..0000000 --- a/tutor.toml +++ /dev/null @@ -1,25 +0,0 @@ -[files] -include = [ - "src/concepts/*.rs", - "examples/*.rs", -] -root = "scopegraphs" - -[parsing] -line_comment = [ - "///", - "//", - "//!", -] -block_comment = [ - [ - "/*", - "*/", - true, - ], - [ - "/**", - "*/", - true, - ], -]