https://github.com/yourilieverdink/orchestrator
Easily define complex code structures in Dart using many out-of-the-box elements.
https://github.com/yourilieverdink/orchestrator
code-generation dart pubdev
Last synced: 10 months ago
JSON representation
Easily define complex code structures in Dart using many out-of-the-box elements.
- Host: GitHub
- URL: https://github.com/yourilieverdink/orchestrator
- Owner: YouriLieverdink
- License: mit
- Created: 2022-07-06T17:37:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T06:29:02.000Z (about 3 years ago)
- Last Synced: 2025-02-09T21:14:00.102Z (12 months ago)
- Topics: code-generation, dart, pubdev
- Language: Dart
- Homepage: https://pub.dev/packages/orchestrator
- Size: 274 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://pub.dev/packages/orchestrator)
Easily define complex code structures in Dart using many out-of-the-box elements.
## Usage
Simple example of generating a class.
```dart
void main() {
final element = Method(
name: 'main',
body: const Static('print')
.invoke([Literal.of('Hello, World!')])
.statement,
);
const context = Context();
const emitter = ElementEmitter(context);
emitter.emit(element);
}
```
Results in:
```dart
void main() {
print('Hello, World!');
}
```