Skip to content

Converts the simple object model into different code outputs, by defining syntax generators and code styles.

License

Notifications You must be signed in to change notification settings

xylemical/code-generator

Repository files navigation

Code Generator

Converts the simple object model into different code outputs, by defining syntax generators and code styles.

Install

The recommended way to install this library is through composer.

composer require xylemical/code-generator

Usage

use Xylemical\Code\Generator\Generator;

$syntax = ...;   // A syntax generator defined by \Xylemical\Code\Generator\SyntaxInterface.
$styles = [...]; // Styles defined by \Xylemical\Code\Generator\StyleInterface.
$generator = new Generator($syntax, $styles);

$definition = ...; // Any definition from the object model library of \Xylemical\Code.
print $generator->generate($definition);

License

MIT, see LICENSE.

About

Converts the simple object model into different code outputs, by defining syntax generators and code styles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages