Merged into InCodeDevs/InCode
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
Install @incodelang/compiler with npm
npm install @incodelang/compiler
Install @incodelang/compiler with yarn
yarn add @incodelang/compiler
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);