diff --git a/docs/application.md b/docs/application.md index 7c73635e..6e2eb4f8 100644 --- a/docs/application.md +++ b/docs/application.md @@ -41,5 +41,5 @@ Application layer compiles templating syntax during parsing to create the end sc The steps to extend the templating syntax: -1. Add a new parser under [SyntaxParsers](./../src/application/Parser/Script/Compiler/Expressions/SyntaxParsers) where you can look at other parsers to understand more. -2. Register your in [CompositeExpressionParser](./../src/application/Parser/Script/Compiler/Expressions/Parser/CompositeExpressionParser.ts). +1. Add a new parser under [SyntaxParsers](./../src/application/Parser/Executable/Script/Compiler/Expressions/SyntaxParsers) where you can look at other parsers to understand more. +2. Register your in [CompositeExpressionParser](./../src/application/Parser/Executable/Script/Compiler/Expressions/Parser/CompositeExpressionParser.ts). diff --git a/docs/collection-files.md b/docs/collection-files.md index d58d2d1e..f3239728 100644 --- a/docs/collection-files.md +++ b/docs/collection-files.md @@ -28,11 +28,20 @@ Related documentation: - `scripting:` ***[`ScriptingDefinition`](#scriptingdefinition)*** **(required)** - Sets the scripting language for all inline code used within the collection. -### `Category` +### Executables + +An Executable is a logical entity that can + +- execute once compiled, +- include a `docs` property for documentation. + +It's either [Category](#category) or a [Script](#script). + +#### `Category` Represents a logical group of scripts and subcategories. -#### `Category` syntax +##### `Category` syntax - `category:` *`string`* **(required)** - Name of the category. @@ -43,7 +52,7 @@ Represents a logical group of scripts and subcategories. - `docs`: *`string`* | `[`*`string`*`, ... ]` - Markdown-formatted documentation related to the category. -### `Script` +#### `Script` Represents an individual tweak. @@ -58,7 +67,7 @@ Types (like [functions](#function)): 📖 For detailed guidelines, see [Script Guidelines](./script-guidelines.md). -#### `Script` syntax +##### `Script` syntax - `name`: *`string`* **(required)** - Script name. diff --git a/src/application/Context/State/Code/Event/CodeChangedEvent.ts b/src/application/Context/State/Code/Event/CodeChangedEvent.ts index b15f0a53..aa99a78e 100644 --- a/src/application/Context/State/Code/Event/CodeChangedEvent.ts +++ b/src/application/Context/State/Code/Event/CodeChangedEvent.ts @@ -1,4 +1,4 @@ -import type { IScript } from '@/domain/IScript'; +import type { Script } from '@/domain/Executables/Script/Script'; import type { ICodePosition } from '@/application/Context/State/Code/Position/ICodePosition'; import type { SelectedScript } from '@/application/Context/State/Selection/Script/SelectedScript'; import type { ICodeChangedEvent } from './ICodeChangedEvent'; @@ -6,13 +6,13 @@ import type { ICodeChangedEvent } from './ICodeChangedEvent'; export class CodeChangedEvent implements ICodeChangedEvent { public readonly code: string; - public readonly addedScripts: ReadonlyArray; + public readonly addedScripts: ReadonlyArray