@incodelang/compiler
TypeScript icon, indicating that this package has built-in type declarations

2.0.9 • Public • Published

@incodelang/compiler

This is the official Compiler of the InCode Programming Language. Attention: This is version 2 of the Compiler, if your are looking for the legacy documentation please visit https://github.com/InCodeDevs/Compiler/tree/v1.x/#readme

Installation

Install @incodelang/compiler with npm

  npm install @incodelang/compiler

Install @incodelang/compiler with yarn

  yarn add @incodelang/compiler

Usage/Examples

Compiling InCode-Code

import { Compiler } from '@incodelang/compiler';

Compiler.compile("Create x as button");

Generating an Abstract-Syntax-Tree

import { AbstractSyntaxTreeGenerator } from '@incodelang/compiler';

AbstractSyntaxTreeGenerator.generate("Create x as button");

Generating Code from Abstract-Syntax-Tree

import { CodeGenerator, AbstractSyntaxTreeGenerator } from '@incodelang/compiler';

const ast = AbstractSyntaxTreeGenerator.generate("Create x as button");

CodeGenerator.generate(ast);

Authors

License

GPL-3.0

Readme

Keywords

none

Package Sidebar

Install

npm i @incodelang/compiler

Weekly Downloads

1

Version

2.0.9

License

GPL-3.0-only

Unpacked Size

390 kB

Total Files

210

Last publish

Collaborators

  • mctzock