This commit consolidates scripts and categories under a unified 'Executable' concept. This simplifies the architecture and improves code readability. - Introduce subfolders within `src/domain` to segregate domain elements. - Update class and interface names by removing the 'I' prefix in alignment with new coding standards. - Replace 'Node' with 'Executable' to clarify usage; reserve 'Node' exclusively for the UI's tree component.
17 lines
768 B
TypeScript
17 lines
768 B
TypeScript
import { ScriptingLanguage } from '@/domain/ScriptingLanguage';
|
|
import { ScriptingLanguageFactory } from '@/application/Common/ScriptingLanguage/ScriptingLanguageFactory';
|
|
import type { ILanguageSyntax } from '@/application/Parser/Executable/Script/Validation/Syntax/ILanguageSyntax';
|
|
import { BatchFileSyntax } from './BatchFileSyntax';
|
|
import { ShellScriptSyntax } from './ShellScriptSyntax';
|
|
import type { ISyntaxFactory } from './ISyntaxFactory';
|
|
|
|
export class SyntaxFactory
|
|
extends ScriptingLanguageFactory<ILanguageSyntax>
|
|
implements ISyntaxFactory {
|
|
constructor() {
|
|
super();
|
|
this.registerGetter(ScriptingLanguage.batchfile, () => new BatchFileSyntax());
|
|
this.registerGetter(ScriptingLanguage.shellscript, () => new ShellScriptSyntax());
|
|
}
|
|
}
|